Using SageMathCloud I was surprised to find this bug:
integral(sqrt(cos(x)-cos(x)^3), x, 0, pi/2)
-2/3
The correct result is 2/3 (luckily I noticed that something was wrong
because the result must be positive!)
numerical_integral gets it right:
numerical_integral(sqrt(cos(x)-cos(x)^3), 0, pi/2
Hallo, what is going on here?
The correct result of this integral is 2/3, but sage returns -2/3
I used SageMathCloud:
from sage.symbolic.integration.integral import definite_integral
f = sqrt(cos(x)-cos(x)^3)
plot(f, x, 0, pi/2)
definite_integral(f, x, 0, pi/2)
--
You received this message
Hi,
I was actually using a very old version of Sage (4.8). I have just tried
with version 5.4.1 and... yes, it works perfectly now!
I should have thought of upgrading Sage earlier I am sorry about that.
Thank you,
Undy
Il giorno venerdì 14 dicembre 2012 15:01:10 UTC+1, kcrisman ha scritto
Sorry, I mixed up:
A is wrong; B is correct.
>
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to
sage-support+unsubscr...@googleg
Hallo,
I am having big troubles with an integral: A and B (see below) should clearly
be equal, but they aren't (A is correct, B is wrong).
What's happening?
Do you have any idea of what's going wrong?
Thanks,
Andrea
var('x, p, q')
assume(p,'integer'); assume(p>0)
assume(q,'integer'); assume(q>