#13639: Inverting 0 mod 1
--------------------------------+-------------------------------------------
Reporter: jdemeyer | Owner: AlexGhitza
Type: defect | Status: new
Priority: minor | Milestone: sage-5.5
Component: basic arithmetic | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors: Jeroen Demeyer
Merged in: | Dependencies:
Stopgaps: |
--------------------------------+-------------------------------------------
{{{
sage: ~Mod(0,1)
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call
last)
/usr/local/src/sage-5.4.rc1/<ipython console> in <module>()
/usr/local/src/sage-5.4.rc1/local/lib/python2.7/site-
packages/sage/rings/finite_rings/integer_mod.so in
sage.rings.finite_rings.integer_mod.IntegerMod_int.__invert__
(sage/rings/finite_rings/integer_mod.c:22320)()
ZeroDivisionError: Inverse does not exist.
}}}
But modulo 1, the inverse does exist. Note that gcd(0,1) == 1.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13639>
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.