Find limits of polynomials and rational functions