Updates:
        Status: Fixed

Comment #3 on issue 1590 by [email protected]: Reduce powers of sin's and cos's to multi-argument functions
http://code.google.com/p/sympy/issues/detail?id=1590

TR8 will handle either since a power is a special case of a product
FU['TR8'](cos(x)**2)
cos(2*x)/2 + 1/2
FU['TR8'](sin(x)**2)
-cos(2*x)/2 + 1/2

TR7 is only meant to target cos
FU['TR7'](sin(x)**2)
sin(x)**2
FU['TR7'](cos(x)**2)
cos(2*x)/2 + 1/2

But applying TR5 first will convert the sin to cos so TR7 will work

FU['TR7'](FU['TR5'](sin(x)**2))
-cos(2*x)/2 + 1/2


No single transform is written to reverse this, but trigsimp (or fu) will do so:

eq
-cos(2*x)/2 + 1/2
fu(eq)
sin(x)**2
trigsimp(eq)
sin(x)**2

cos(2*x)/2+S.Half
cos(2*x)/2 + 1/2
fu(_)
cos(x)**2


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to