Hello!
Maxima gets the following definite integral wrong:
(%i10) integrate(exp(acos(x)),x,0,1);
- %pi/2
1 %e
(%o10) - - ---------
2 2
The correct answer is 1/2*e^(1/2*pi) + 1/2.
Downstream report: https://trac.sagemath.org/ticket/24008
huh, sorry for the code misalignment... what you see is Not what you get :)
i don't find a button to edit the ticket's description.
Diff:
Diff:
Hmm, tried to fix formatting, didn't succeed ... try again.
Maxima is returning the answer for a different integral. E.g. in MATLAB:
ans =
ans =
Another way to look at it is that Maxima has chosen a different branch.
Ordinarily, one would say that 0 < acos(x) < pi/2 if 0 < x < 1.
That's the branch that MATLAB uses:
ans =
ans =
However, cos(x) is of course an even function:
ans =
...which means one could claim that acos(.9) = -.4510
That's essentially what Maxima has done.
I've no clue as to how one could persuade it to use a different branch.
On Wed, Oct 11, 2017 at 4:37 AM, Marcelo Forets via Maxima-bugs maxima-bugs@lists.sourceforge.net wrote:
Related
Bugs: #3340