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
Tests for floor function precision errors #26537
base: master
Are you sure you want to change the base?
Conversation
✅ Hi, I am the SymPy bot. 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.13. Click here to see the pull request description that was parsed.
|
|
||
assert 2**31 == 2**floor(log(2**31-1,2)+1) | ||
|
||
assert (1 / floor(log(2**40-1,2)+1)) == 0.025 | ||
assert floor(1/2**40) == 0 | ||
assert floor (1/2**40) != (1/2**40) |
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.
Are these necessary?
References to other Issues or PRs
Adds tests related to issue #26368
Brief description of what is fixed or changed
Adds tests for floor function to verify that large numbers do not result in precision errors
Other comments
Release Notes