Comment #2 on issue 1181 by Vinzent.Steinberg: Advanced trigonometric
simplification
http://code.google.com/p/sympy/issues/detail?id=1181
Currently you could use a poor man's trigsimp:
In [18]: e
Out[18]:
2 2 2 2 2 2 2 2
r ⋅cos (φ) + r ⋅sin (φ)⋅sin (θ) - r ⋅cos (φ)⋅cos (θ)
In [19]: e.rewrite(exp).expand().rewrite(sin).cancel()
Out[19]:
2 2
r ⋅cos(2⋅θ) r
- ─────────── + ──
2 2
In [20]: _.expand(trig=True)
Out[20]:
2 2 2
r - r ⋅cos (θ)
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
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/sympy-issues?hl=en.