-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Standardize modulo operator % on real numbers (step 1) #21745
Comments
Dependencies: #21746 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Author: Vincent Delecroix |
Branch: u/vdelecroix/21745 |
Commit: |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:
|
Changed dependencies from #21746 to none |
comment:15
rebased on 7.5.beta6 |
comment:16
failing doctests (see patchbot) |
For any subset of the real numbers we change the modulo operator to be
x%y is the unique x' between [0,y) of the form x + ny with n integer
The main reason for the shift are the following incoherences
and
The change mainly affects QQ and RR. This ticket concentrates on QQ. For other numbers see #21747.
The specifications for the transition period are as follows:
//
and%
with rational arguments will return rationals(p/q) % (r/s)
whenp/q
orr/s
is not an exact integer(p/q) // (r/s)
when the result is not an exact integerSee this sage-devel thread and also #15260
CC: @sagetrac-tmonteil
Component: basic arithmetic
Author: Vincent Delecroix
Branch/Commit: u/vdelecroix/21745 @
39f4053
Issue created by migration from https://trac.sagemath.org/ticket/21745
The text was updated successfully, but these errors were encountered: