#10047: ZeroDivisionError in crt method of IntegerMod
-------------------------------+--------------------------------------------
Reporter: roed | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-4.6
Component: algebra | Keywords:
Author: David Roe | Upstream: N/A
Reviewer: Paul Zimmermann | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Changes (by zimmerma):
* cc: robertwb (added)
* reviewer: => Paul Zimmermann
Comment:
David, I'm not sure the proposed patch is optimal. Indeed, the problem
only occurs when self
is a small integer and other is a GMP integer. Since the small integer
code seems to deal
correctly with mod(0,1), a fix is only needed is the case self=mod(0,1)
and other is a GMP
integer, for example after the line
{{{
if other.modulus() == 1:
return self
}}}
Robert, since you wrote this code, can you comment on this?
Paul
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10047#comment:2>
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.