I think that 1/x should be returned in both cases.

Kalevi Suominen

On Tuesday, November 9, 2021 at 1:30:36 PM UTC+2 [email protected] wrote:

> Hey guys ! 
>
> I am working on a Pr based on the as_leading_term() method of core/expr.py 
> (specifically on multivariable cases) . I would be glad if someone could 
> clarify whether 
> (1/x + y).as_leading_term(x) and (1/x + y).as_leading_term(y), both should 
> give back 1/x as the output !!
>
> I am not that sure of multivariate cases for as_leading_term() because I 
> can't couldn't any tests for the same in core/expr.py hence although I have 
> working code for the Pr , I am sometimes not sure whether it is returning 
> mathematically correct answers or what sympy expects out of the expression !
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/e332d999-7fbf-4ab6-b1b5-075b583571d8n%40googlegroups.com.

Reply via email to