-
-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #15888: CC -> PARI: return t_REAL for real numbers
When converting Sage complex numbers to PARI, we should return a PARI `t_REAL` if the original number was actually real. This fixes a problem with `ellwp()` in #15767. In PARI's floating point model, the number `1e-19 + 0.0*I` has less precision than the real `1e-19`. It is also consistent with the PARI philosophy of returning simplified types (examples: `(1.1*I)^2` and `ellj(1.1*I)` in PARI gives real numbers). URL: http://trac.sagemath.org/15888 Reported by: jdemeyer Ticket author(s): Jeroen Demeyer Reviewer(s): Peter Bruin
- Loading branch information
Showing
4 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters