The following integration command gives output as -8 where as the answer should be 8.
integrate(sqrt(8 - 8*cos(2*t)), t, 0, %pi);
Can't think of why.
The following integration command gives output as -8 where as the answer should be 8.
integrate(sqrt(8 - 8*cos(2*t)), t, 0, %pi);
Can't think of why.
I could reproduce the problem and think that this is an error. Created ticket #2575.
(%i1) S:'integrate(sqrt(8 - 8cos(2t)), t, 0, %pi);
(%o1) integrate(sqrt(8-8cos(2t)),t,0,%pi)
(%i2) ev(%, nouns);
(%o2) -8
This is maxima bug. Next we solve step-by-step.
(%i3) trigexpand(S);
(%o3) integrate(sqrt(8-8(cos(t)^2-sin(t)^2)),t,0,%pi)
(%i4) S1:trigsimp(%);
(%o4) 4integrate(abs(sin(t)),t,0,%pi)
(%i5) assume(sin(t)>0)$
(%i6) ev(S1, nouns);
(%o6) 8
best
Aleksas D
Thanks
Log in to post a comment.