New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception during evaluation of limit (only locally, not in the live version) #14811

pruvisto opened this Issue Jun 20, 2018 · 0 comments


None yet
2 participants

pruvisto commented Jun 20, 2018

The following limit correctly evaluates to ∞ in the live version of sympy at

limit(((1 + (Rational(2,3) ** (x + 1))) ** (2 ** x)) / (2 ** (Rational(4,3) ** (x - 1))), x, oo)

However, in isympy on my machine, I get the following exception


/usr/lib/python3.6/site-packages/sympy/series/ in gruntz(e, z, z0, dir)
    662     # It might be nicer to rewrite the exactly to what they were initially,
    663     # but that would take some work to implement.
--> 664     return r.rewrite('intractable', deep=True)

AttributeError: 'NoneType' object has no attribute 'rewrite'

This happens both in the lates version 1.1.1 and in the version 1.0, which uses. I do have a slightly different Python version (2.7.15 on my machine vs. 2.7.12 in the live version).

I have no idea why this different behaviour occurs. In any case, that limit is simple enough; Gruntz's algorithm (which is apparently used by sympy) should not have any problems with it, so this looks like a bug to me.

skirpichev added a commit to skirpichev/diofant that referenced this issue Jun 20, 2018

@asmeurer asmeurer added the limits label Jun 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment