You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried out a calculus exercise on SymPy and surprisingly it just failed to give the right answer, rather than timed out or throw an exception.
The problem is a bit confusing for human, though. But there must be something wrong that caused this fault.
In [2]: x = symbols('x', real = True)
In [3]: expr = (1+1/x)**(x**2)/exp(x)
In [4]: limit(expr, x, oo)
Out[4]: 1
The correct answer is exp(-1/2).
The text was updated successfully, but these errors were encountered:
I tried out a calculus exercise on SymPy and surprisingly it just failed to give the right answer, rather than timed out or throw an exception.
The problem is a bit confusing for human, though. But there must be something wrong that caused this fault.
The correct answer is
exp(-1/2)
.The text was updated successfully, but these errors were encountered: