MATLAB: Is it not integrating complex problems

integrationMATLAB

Hello,
I was trying to integrate the following funcition for theta:
h = inline('(10 * cos(theta).^4)^(1/2) * (tan(theta/2))','theta')
syms theta
int(h(theta), theta)
Matlab answer is:
int(tan(theta/2)*(10*cos(theta)^4)^(1/2), theta)
I tried numerical integration from 30 to 80 but it will not provide a numerical answer. Is there another way to integrate? What recommendation do you have?
Thank you

Best Answer

Because of the tan(), h(theta) is discontinuous roughly every 2*pi apart, going to -infinity and +infinity. The integral would therefore require dealing with the sums and differences of infinities, which is undefined.
Perhaps you want
vpaintegral(h(theta),theta,deg2rad(30),deg2rad(80))