On Apr 15, 8:03 am, Laurent <[email protected]> wrote: > Le 15/04/2011 02:39, Michael Orlitzky a crit :> Am I going crazy? > > > sage: integrate(cos(2*x)*cos(x), x, 0, pi) > > 4/3 > > Actually Sage seems not to get the correct primitive : > > ---------------------------------------------------------------------- > | Sage Version 4.6.1, Release Date: 2011-01-11 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > sage: f(x)=cos(2*x)*cos(x) > sage: F=f.integrate(x) > sage: F.diff(x).simplify_trig() > x |--> 2*sin(x)*cos(x)^2 > > Anyway, computation by hand shows that a primitive of cos(2x)cos(x) is > (-2/3)*sin(x)^3+sin(x) > > The correct answer is thus zero and sage is wrong.
As pointed out above, the latest alphas have Maxima 5.23.2, so this is not a problem any more. - kcrisman -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
