Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2999 by [email protected]: expand(trig=True) could process Floats
http://code.google.com/p/sympy/issues/detail?id=2999

The following is unchanged

sin(2.*x).expand(trig=True)
sin(2.0*x)

while the Integer variant is changed

sin(2*x).expand(trig=True)
2*sin(x)*cos(x)

Is there a reason not to return `2.0*sin(x)*cos(x)`?

The same sort of thing applies to

cos(2.0*x).expand(trig=True)
cos(2.0*x)

which, for the Integer variant, gives

cos(2*x).expand(trig=True)
2*cos(x)**2 - 1


This stems from looking only for Rationals in trigonometric's _eval_expand_trig routines.

--
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.

Reply via email to