as_numer_denom doesn't do any canceling. It is designed to be the
fastest way to convert a rational function into a product of
polynomials. If you want it canceled, you can call cancel on the
result.

Aaron Meurer

On Wed, Jun 19, 2013 at 9:06 AM, Manoj Kumar
<manojkumarsivaraj...@gmail.com> wrote:
> I have a query regarding as_numer_denom.
> Example:
>
>>>> a, b = symbols("a b")
>>>> eq = a*y/x**2 + 2*b*y - b/x
>>>> eq.as_numer_denom
> (a*x*y + 2*b*x**3*y - b*x**2, x**3)
>
> Shouldn't there be one x less in the numerator and denominator?
>
> --
> 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 sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> 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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
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