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
In some situation, for example if expr = x**2 + x*sin(x), limit(expr, x, oo) fails
since heuristics() in limits.py calculates the limit of x**2 and x*sin(x) separately.
The second one returns all the real line as limit points.
If such happens, then the procedure stops.
Instead, if expr = x * (x + sin(x)), then sympy gives the correct answer.
Therefore some lines to limits.py are added in order to check whether
factor_terms(expr) or factor(expr) can help in solving the limit.
factor(expr) is more expensive than factor_terms(expr). Hence we inserted some conditional
in order to prevent, if possible, the use of factor(expr).
Moreover, two tests are added.
limit(x**2 + x*sin(x) + cos(x), x, -oo)
should return ooThe text was updated successfully, but these errors were encountered: