-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Added heuristics kwarg for Limit.doit solving big-oh notation error, added tests #15512
Conversation
✅ Hi, I am the SymPy bot (v134). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.4. Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it. Click here to see the pull request description that was parsed.
|
from sympy.abc import n | ||
from sympy import O, oo, sin | ||
|
||
assert O(n*sin(n) + 1, (n, oo)) == O(n*sin(n) + 1, (n, oo)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line, as well as those below it, do not actually test the behavior of Order. Same object on both sides of equality, so equality is assured to hold regardless of what that object is. So it holds in current master branch as well, where both sides return O(n*sin(n))
.
Perhaps you meant to test
O(n*sin(n)+1, (n, oo)).expr == n*sin(n) + 1
which would indeed verify that the expression returned by Order constructor is what you expect.
Are you still working on this? |
Forgive me, I was a bit preoccupied with some work. I'm getting onto it. |
There's no need to be forgiven :). We all have other things to do as well! I was just asking so it would be clear to anyone else thinking about working on this. |
Added heuristics
kwarg
forlimit.doit
solving big-oh notation error, added testsFixes #9917
Note : I've used the changes implemented by Sergey Kirpichev in diofant here
Release Notes
kwarg
forlimit.doit