Considering a rational function, as for example
myExpr=(x+3)(2+5x+6x^2)/(x(x-5)(x+20))
I would like to have a function that tells me the leading order behavior of myExpr
under limits to infinity or to zero. Note that I am not interested in explicit coefficients and would like to save computational resources. All I need the function to return is:
LeadingOrder[myExpr,{x,0}]
-1
and
LeadingOrder[myExpr,{x,Infinity}]
0
I know there is a built in function that does this for polynomials Exponent[myPoly,x]
when considering a limit to infinity. So I wonder if this can be done computationally efficiently for rational functions? Thanks for any suggestion.