#15888: CC -> PARI: return t_REAL for real numbers
---------------------------+----------------------------------
   Reporter:  jdemeyer     |            Owner:
       Type:  enhancement  |           Status:  new
   Priority:  major        |        Milestone:  sage-6.2
  Component:  interfaces   |         Keywords:
  Merged in:               |          Authors:  Jeroen Demeyer
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+----------------------------------
 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).

--
Ticket URL: <http://trac.sagemath.org/ticket/15888>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to