https://github.com/sympy/sympy/blob/master/sympy/series/limits.py