Updates:
Labels: Simplify
Comment #2 on issue 2999 by [email protected]: expand(trig=True) could
process Floats
http://code.google.com/p/sympy/issues/detail?id=2999
This is similar to factor(x**2.0 - 1) !=> (x**1.0 - 1)*(x**1.0 + 1)
(that !=> means "does not give").
Mathematically, a*sin(x)*cos(x) == sin(a*x) for all x only if a is equal to
2 or -2 (see
http://www.wolframalpha.com/input/?i=plot+a*sin%28x%29*cos%28x%29+%3D+sin%28a*x%29,
notice how these are only solutions independent on x).
Perhaps it would be correct to return 2*sin(1.0*x)*cos(1.0*x), though
things can get ambiguous fast (should cos(3.3*x) be considered a triple
angle argument, or what?).
--
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.