#10873: Bug in integer_mod powering non-invertible base and negative exponents
--------------------------------+-------------------------------------------
Reporter: robertwb | Owner: AlexGhitza
Type: defect | Status: positive_review
Priority: major | Milestone: sage-4.7.1
Component: basic arithmetic | Keywords:
Work_issues: | Upstream: N/A
Reviewer: Mariah Lenox | Author: Robert Bradshaw
Merged: | Dependencies:
--------------------------------+-------------------------------------------
Description changed by jdemeyer:
Old description:
> {{{
> sage: mod(2, 990)^-1
> ------------------------------------------------------------
> Traceback (most recent call last):
> File "<ipython console>", line 1, in <module>
> RuntimeError
> }}}
New description:
In sage-4.7::
{{{
sage: mod(2, 990)^-1
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)
/usr/local/src/sage-4.7/<ipython console> in <module>()
/usr/local/src/sage-4.7/local/lib/python2.6/site-
packages/sage/rings/finite_rings/integer_mod.so in
sage.rings.finite_rings.integer_mod.IntegerMod_int.__pow__
(sage/rings/finite_rings/integer_mod.c:20093)()
RuntimeError: Floating point exception
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10873#comment:10>
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.