#12636: 0.is_squarefree() raises a PariError
--------------------------------+-------------------------------------------
Reporter: johanbosman | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: basic arithmetic | Keywords: pari integer squarefree
Work_issues: | Upstream: Fixed upstream, but not in a
stable release.
Reviewer: | Author:
Merged: | Dependencies:
Stopgaps: |
--------------------------------+-------------------------------------------
Description changed by johanbosman:
Old description:
> {{{
> 0.is_sage: 0.is_squarefree()
> ---------------------------------------------------------------------------
> PariError Traceback (most recent call
> last)
>
> /Users/jgbosman/<ipython console> in <module>()
>
> /usr/local/share/sage/sage-5.0.beta4/local/lib/python2.7/site-
> packages/sage/rings/integer.so in
> sage.rings.integer.Integer.is_squarefree (sage/rings/integer.c:27127)()
>
> /usr/local/share/sage/sage-5.0.beta4/local/lib/python2.7/site-
> packages/sage/libs/pari/gen.so in sage.libs.pari.gen._pari_trap
> (sage/libs/pari/gen.c:49413)()
>
> PariError: (5)
> }}}
> This bug was probably introduced with the recent Pari upgrade, as older
> versions of Sage do output `False`.
New description:
{{{
0.is_sage: 0.is_squarefree()
---------------------------------------------------------------------------
PariError Traceback (most recent call
last)
/Users/jgbosman/<ipython console> in <module>()
/usr/local/share/sage/sage-5.0.beta4/local/lib/python2.7/site-
packages/sage/rings/integer.so in sage.rings.integer.Integer.is_squarefree
(sage/rings/integer.c:27127)()
/usr/local/share/sage/sage-5.0.beta4/local/lib/python2.7/site-
packages/sage/libs/pari/gen.so in sage.libs.pari.gen._pari_trap
(sage/libs/pari/gen.c:49413)()
PariError: (5)
}}}
This bug was probably introduced with the recent Pari upgrade, as older
versions of Sage do output `False`.
Reported upstream: http://pari.math.u-bordeaux.fr/cgi-
bin/bugreport.cgi?bug=1304
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12636#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.