#15114: disallow coercions from RR to RIF
------------------------+--------------------------------------------
Reporter: mstreng | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-5.12
Component: coercion | Keywords: RIF RR interval coercion
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------+--------------------------------------------
Remove the following coercions because they make interval arithmetic much
less trustworthy.
* RR --> RIF
* CC --> CIF
* RealField --> RealIntervalField
* ComplexField --> ComplexIntervalField
For example, one could easily do the following by accident.
{{{
sage: iv = 1 + 2^(-55) + 0. + RIF(1)
sage: iv.lower(), iv.upper()
(2.00000000000000, 2.00000000000000)
}}}
See also [https://groups.google.com/forum/#!topic/sage-devel/zfg0PhFR_qA
this topic on sage-devel]
--
Ticket URL: <http://trac.sagemath.org/ticket/15114>
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.