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

New issue 2997 by [email protected]: collect mishandles power rules
http://code.google.com/p/sympy/issues/detail?id=2997

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


y**(2*x) is not always the same as (y**2)**x:

rep={x:-.1,y:-1}
((y**2)**x).subs(rep).n()
1.00000000000000
(y**(2*x)).subs(rep).n()
0.809016994374947 - 0.587785252292473*I

And integer on the right can join in with another exponent:

((x**y)**2)
x**(2*y)

but if it's already there (i.e. as 2*y) it can't be pulled out unless the base is positive or the y is an integer.

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