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

New issue 2978 by [email protected]: x**2.0/x doesn't simplify
http://code.google.com/p/sympy/issues/detail?id=2978

In [20]: x**2.0/x
Out[20]:
 2.0
x
────
 x

This should simplify to x. Apparently floating point powers are never combined:

In [21]: x**2.0*x
Out[21]:
   2.0
x⋅x

In [22]: x**2.0*x**1.0
Out[22]:
 1.0  2.0
x   ⋅x

But of course, they should, for the same reason that 1.0*x + 2.0*x should combine into 3.0*x (and they ought to be using the exact same logic too, so it's surprising that this doesn't work).

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