#19256: inconsistent numerics with RR/CC/CDF(pi,sqrt(2))
-----------------------------+------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.9
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------+------------------------
Description changed by rws:
Old description:
> {{{
> sage: (CC(pi)-pi).n()
> -3.10862446895044e-15
> sage: (RR(pi)-pi).n()
> 0.000000000000000
> sage: (CC(sqrt(2))-sqrt(2)).n()
> -5.10702591327572e-15
> sage: (RR(sqrt(2))-sqrt(2)).n()
> 0.000000000000000
>
> sage: (ComplexField(54)(pi)-pi).n()
> -3.10862446895044e-15
> sage: (ComplexField(55)(pi)-pi).n()
> 0.000000000000000
> sage: (ComplexField(60)(sqrt(2))-sqrt(2)).n()
> -2.22044604925031e-16
> sage: (ComplexField(61)(sqrt(2))-sqrt(2)).n()
> 0.000000000000000
> }}}
New description:
{{{
sage: RR(sqrt(2))
1.41421356237310
sage: CC(sqrt(2))
1.41421356237309
sage: (CC(pi)-pi).n()
-3.10862446895044e-15
sage: (RR(pi)-pi).n()
0.000000000000000
sage: (CC(sqrt(2))-sqrt(2)).n()
-5.10702591327572e-15
sage: (RR(sqrt(2))-sqrt(2)).n()
0.000000000000000
sage: (ComplexField(54)(pi)-pi).n()
-3.10862446895044e-15
sage: (ComplexField(55)(pi)-pi).n()
0.000000000000000
sage: (ComplexField(60)(sqrt(2))-sqrt(2)).n()
-2.22044604925031e-16
sage: (ComplexField(61)(sqrt(2))-sqrt(2)).n()
0.000000000000000
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/19256#comment:4>
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/d/optout.