matlab求解区间带有字母的定积分

matlab中如何计算这个的定积分啊?有表达式解析解都可以

syms T h0 x
result = int(1/(h0-sin(x))^3)

答案如下:

result =

- ((4*h0^2 - 1)/(h0^4 - 2*h0^2 + 1) - (tan(x/2)^3*(5*h0^2 - 2))/(h0*(h0^4 - 2*h0^2 + 1)) - (tan(x/2)*(11*h0^2 - 2))/(h0*(h0^4 - 2*h0^2 + 1)) + (tan(x/2)^2*(h0^2 + 2)*(4*h0^2 - 1))/(h0^2*(h0^4 - 2*h0^2 + 1)))/(tan(x/2)^2*(2*h0^2 + 4) - 4*h0*tan(x/2)^3 - 4*h0*tan(x/2) + h0^2 + h0^2*tan(x/2)^4) - (atan(((((2*h0^2 + 1)*(2*h0^4 - 4*h0^2 + 2))/(2*(h0 - 1)^(5/2)*(h0 + 1)^(5/2)*(h0^4 - 2*h0^2 + 1)) - (h0*tan(x/2)*(2*h0^2 + 1))/((h0 - 1)^(5/2)*(h0 + 1)^(5/2)))*(h0^4 - 2*h0^2 + 1))/(2*h0^2 + 1))*(2*h0^2 + 1))/((h0 - 1)^(5/2)*(h0 + 1)^(5/2))

>>追问

您好,非常感谢您的回答!您给出来的是一个不定积分表达式,我希望得到的是一个关于h0和T的定积分的解

追答

syms T h0 x
result = int(1/(h0-sin(x))^3,0,T)

追问

这样在matlab中运行就没有结果了

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答