#1557 sin(x + (e + 1/2)*%pi) for even e

closed
nobody
5
2008-12-31
2008-12-30
Alexey Beshenov
No

According to the user manual, Maxima was able to do

(%i1) declare(j, integer, e, even, o, odd)$
(%i2) sin(x + (e + 1/2)*%pi);
(%o2) cos(x)
(%i3) sin(x + (o + 1/2)*%pi);
(%o3) -cos(x)

But in the current CVS version:

(%i1) declare(j, integer, e, even, o, odd)$
(%i2) sin(x + (e + 1/2)*%pi);
(%o2) sin(x+%pi*(e+1/2))
(%i3) sin(x + (o + 1/2)*%pi);
(%o3) sin(x+%pi*(o+1/2))

Discussion

  • Another stange thing. Was:

    (%i1) c: %pi/3 - a - b$
    (%i2) bc: sin(a)*sin(3*c)/sin(a+b);
    (%o2) sin(a)*sin(3*b+3*a)/sin(b+a)

    Now:

    (%i1) c: %pi/3 - a - b$
    (%i2) bc: sin(a)*sin(3*c)/sin(a+b);
    (%o2) sin(a)*sin(3*(-b-a+%pi/3))/sin(b+a)

     
  • Could I remove these examples from the user manual?

     
    • status: open --> closed