Try using factor() or cancel(). See
http://docs.sympy.org/0.7.3/tutorial/simplification.html for more
information.

Aaron Meurer

On Sep 5, 2013, at 11:02 AM, Boris Kheyfets <[email protected]> wrote:

Hello SymPy users,

How do I force division? I have a fraction, which I get as a result of
series of subs. Now I get some z**(3/2) stuck in denominator. Here's a
object:

-P**2*R**2*(2*q**2*z**(11/2) - 8*q**2*z**(7/2)*log(z) +
4*q**2*z**(7/2) - 8*q**2*z**(3/2)*log(z)**2 - 8*q**2*z**(3/2)*log(z) -
6*q**2*z**(3/2) + 4*q*z**5*log(z) - 8*q*z**3*log(z)**2 +
4*q*z**3*log(z) - 4*q*z**3 + 4*q*z + 2*z**(9/2)*log(z)**2 +
4*z**(5/2)*log(z)**2 + z**(5/2) - sqrt(z))/(8*q**2*z**(3/2)*log(z)**2)

 _____________
With respect,
*Boris.*

-- 
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to