[sympy] Doubt regarding as_leading_term for multivairate case

2021-11-09 Thread Anderson Bhat
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 th

[sympy] Re: Doubt regarding as_leading_term for multivairate case

2021-11-09 Thread Kalevi Suominen
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 anderso...@gmail.com 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