how to get a value using integral

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???

 采纳的回答

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 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by