-
-
Notifications
You must be signed in to change notification settings - Fork 654
Open
Description
The sage.arith.misc.crt()
function well supports non-coprime moduli like in the example below:
sage: crt([6,0],[10,4])
16
However, the same example does not work with the sage.rings.finite_rings.integer_mod_ring.crt()
function as
mod(6,10).crt(mod(0,4))
gives an error ZeroDivisionError: moduli must be coprime
.
Please remove this restriction from sage.rings.finite_rings.integer_mod_ring.crt()
and let it accept non-coprime moduli like sage.arith.misc.crt()
does.
CC: @yyyyx4
Component: algebra
Issue created by migration from https://trac.sagemath.org/ticket/32487