#12105: RuntimeError: Segmentation fault with nth_root
-----------------------------------+----------------------------------------
Reporter: lfousse | Owner: jason, jkantor
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: numerical | Keywords:
Work_issues: | Upstream: N/A
Reviewer: Karl-Dieter Crisman | Author: Johan Bosman
Merged: | Dependencies:
-----------------------------------+----------------------------------------
Changes (by kcrisman):
* reviewer: => Karl-Dieter Crisman
Comment:
On Mac I don't get an error, but it hangs and eventually consumes all
resources, so fair enough!
This patch gives
{{{
sage: timeit("RealField(53)(0.05).nth_root(7 * 10^8)")
625 loops, best of 3: 69.2 µs per loop
}}}
One question I have is whether this is the most appropriate test with this
precision.
{{{
sage: RealField(53)(0.05).nth_root(7 * 10^8)
0.999999995720382
sage: _^(7*10^8)
0.0499999991341384
}}}
Is that good enough?
Otherwise this is fine, passes tests, etc. on 5.0.beta1.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12105#comment:3>
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 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.