#16025: Calling the .n() method on reals shouldn't increase precision
-------------------------------------+-------------------------------------
Reporter: rws | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: calculus | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/16025 | d4bdfcab040c79a63125695de8835e875ca9c236
Dependencies: #17166 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Replying to [comment:12 kcrisman]:
> Also, is there/should there be a numerical approximation method for the
CC like you added for the RR? (This may be a dumb question.)
This is for `RealLiteral`, not `RealNumber`. Given that there is no
`ComplexLiteral`, no it doesn't have to be added. Remark also the
difference (with or without this ticket):
{{{
sage: a = RR(CC(1.3))
sage: b = RR(1.3)
sage: a == b
True
sage: RealField(200)(a)
1.3000000000000000444089209850062616169452667236328125000000
sage: RealField(200)(b)
1.3000000000000000000000000000000000000000000000000000000000
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16025#comment:13>
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.