hello, I have a trouble to get value using integral.
My question is
so, I use
syms x
double(int(x^3.5/(x-1)^(1/2),0,1)) % vpa(int(x^3.5/(x-1)^(1/2),0,1))
but I got error or numeric::int even though the real solution is -0.859029i. So Do you have any ideas to solve this problem???

 채택된 답변

David Goodmanson
David Goodmanson 2018년 5월 11일
편집: David Goodmanson 2018년 5월 11일

0 개 추천

Hello Jongnam, try
format long
fun = @(x) x.^(7/2)./(sqrt(x-1))
integral(fun,0,1)
ans = 0.000000000000000 - 0.859029241215738i
As a check, with the substitution x = sin(theta)^2 you can arrive at (-i) *
2*Integral{0,pi/2} sin(theta)^8 dtheta
= (7*5*3*1)/(8*6*4*2)*pi
ans = 0.859029241215959

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

태그

질문:

2018년 5월 11일

편집:

2018년 5월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by