-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Doctests: Even reals are integers #22026
Comments
comment:1
I wasn't sure if I should report this as a defect or as an enhancement. I'll add that if one tries sage: assume(x, 'noninteger') an error is raised: Traceback (most recent call last):
...
ValueError: Assumption is inconsistent so "someone" knows |
comment:2
Yes, Maxima knows. The inference logic however is in Pynac. |
Upstream: Reported upstream. Developers acknowledge bug. |
comment:3
This is now pynac/pynac#225 |
Dependencies: pynac-0.7.4 |
This comment has been minimized.
This comment has been minimized.
Changed upstream from Reported upstream. Developers acknowledge bug. to Fixed upstream, but not in a stable release. |
comment:6
Not fixed in Pynac, huh. |
This comment has been minimized.
This comment has been minimized.
comment:7
Issue is fixed. Only doctests needed. |
Author: Ralf Stephan |
Commit: |
New commits:
|
Changed dependencies from pynac-0.7.4 to #22219 |
Changed upstream from Fixed upstream, but not in a stable release. to none |
Reviewer: Travis Scrimshaw |
comment:10
LGTM. |
Changed branch from u/rws/doctests__even_reals_are_integers to |
Check this:
At least for real numbers (or even for complex numbers), an even number should be assumed to be an integer.
This is how it works in SymPy:
Was supposed to be fixed in pynac-0.7.4. This will also work and should be doctested here:
Depends on #22219
Component: symbolics
Keywords: is_integer, assume
Author: Ralf Stephan
Branch/Commit:
81e3fba
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/22026
The text was updated successfully, but these errors were encountered: