#6171: [with patch, needs review] make 'prec' work with sqrt more of the time
------------------------+---------------------------------------------------
Reporter: jhpalmieri | Owner: jhpalmieri
Type: defect | Status: new
Priority: minor | Milestone: sage-4.0.1
Component: algebra | Keywords:
------------------------+---------------------------------------------------
Before this patch:
{{{
sage: sqrt(10.1, prec=100)
...
TypeError: sqrt() got an unexpected keyword argument 'prec'
}}}
This is despite the fact that the docstring for sqrt lists as one of its
inputs
{{{
- ``prec`` - integer (default: None): if None, returns
an exact square root; otherwise returns a numerical square
root if
necessary, to the given bits of precision.
}}}
After this patch:
{{{
sage: sqrt(10.1, prec=100)
3.1780497164141406804582045589
sage: sqrt(10.1, prec=200)
3.1780497164141406804582045589354800553656236461562686475080
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6171>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---