Once again, I cannot reproduce this.  What version of python are you  
running?  Try doing "from __future__ import division".  It is  
reminiscent of things like 1/3 returning the float 0.333333333333.   
Also try simplify(sympify(y**5/a)).  Does it only do this if you call  
simplify?  If so, could you narrow it down to what part of simplify.   
If you look in the source, you will see that simplify simply calls  
several functions in simplify.py at once.

Aaron Meurer
On Jun 5, 2009, at 9:22 PM, smichr wrote:

>
> Just noticed an odd behavior: does anyone know why a power would be
> changed to real by simplification if that power is a term in a
> division expression?
>
> ###
>>>> a,y=var('a y')
>>>> simplify(a*y**5)
> a*y**5
>>>> simplify(y**5/a)
> y**5.0/a
> ###
>
> /c
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to