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

New issue 2998 by smi...@gmail.com: collect doesn't process powers with float coeff in exponent
http://code.google.com/p/sympy/issues/detail?id=2998

collect(a*y**(2.*x)+b*y**(2.*x),y**(x))
a*y**(2.0*x) + b*y**(2.0*x)

This should be the same as

collect(a*y**(2*x)+b*y**(2*x),y**(x))
(a + b)*(y**2)**x

(except for the issue of issue 2997)

The code in parse_terms has the option to process non-Rational coefficients in the exponent, but the method as_coeff_mul() is used (which always returns a Rational for coeff) instead of the method as_coeff_Mul() (which always returns a Number -- not necessarily Rational) for coeff. So the code should work, it just needs to use the other method.


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to