#12105: RuntimeError: Segmentation fault with nth_root
-------------------------+--------------------------------------------------
Reporter: lfousse | Owner: jason, jkantor
Type: defect | Status: new
Priority: major | Milestone:
Component: numerical | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-------------------------+--------------------------------------------------
Comment(by johanbosman):
The bug is in line 4708 of sage/rings/real_mpfr.pyx:
{{{
if algorithm == 0 and fld.__prec * n < 10000:
}}}
The result of that multiplication as a signed int may become negative and
actually does so in your example.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12105#comment:1>
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.