#13055: Document default precision for .n() method
--------------------------------------------+--------------------------
Reporter: dsm | Owner: burcin
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-6.5
Component: symbolics | Resolution:
Keywords: numerical_approx, sd40.5 | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------------+--------------------------
Changes (by kcrisman):
* status: needs_review => needs_work
* priority: major => minor
* milestone: sage-duplicate/invalid/wontfix => sage-6.5
Comment:
> About `hold=True`, that even doesn't seem to work with real numbers:
Exactly, which is why I didn't use that example.
Okay, I don't have that much invested in this. But then
{{{
sage: x = 1.2340000000000000000000001
sage: x.n?
Docstring:
Return a numerical approximation of x with at least prec bits of
precision.
EXAMPLES:
sage: (2/3).n()
0.666666666666667
sage: pi.n(digits=10)
3.141592654
sage: pi.n(prec=20) # 20 bits
3.1416
TESTS:
Check that http://trac.sagemath.org/14778 is fixed:
sage: (0).n(algorithm='foo')
0.000000000000000
}}}
should really be improved, and possibly the documentation for other
versions of `.numerical_approx` as well. Those are practically stubs!
--
Ticket URL: <http://trac.sagemath.org/ticket/13055#comment:14>
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.