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 !