-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Assume real root in limit #18363
Comments
You can use
|
@gschintgen , got some weird answer for right-hand limit: |
Manually rewriting the root does the trick:
So the piecewise expression returned by
I think the underlying issue is has to do with this: if
But if I set
Since I'm not at all familiar with this part of the codebase that's as far as I'm going with this. |
Also noteworthy:
A simple substitution of x = -2 would reveal that both |
@gschintgen , thank you for the thorough answer. |
@gschintgen @jksuom Is there anything left to handle in this issue? |
Yes, this:
The first term shouldn't be there: it equals zero. |
Add._eval_as_leading_term piecewise_folds Piecewise expressions (sympy#18363)
Limit(((x - 6)**(Integer(1)/3) + 2)/(x + 2),x,-2,'-').doit()
returns-oo*sign(2+2*(-1)^(1/3))
. How to make it real-valued?The text was updated successfully, but these errors were encountered: