diff options
Diffstat (limited to 'src/algebra/fmod.spad.pamphlet')
-rw-r--r-- | src/algebra/fmod.spad.pamphlet | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/algebra/fmod.spad.pamphlet b/src/algebra/fmod.spad.pamphlet index 57e6f206..5140356b 100644 --- a/src/algebra/fmod.spad.pamphlet +++ b/src/algebra/fmod.spad.pamphlet @@ -64,8 +64,7 @@ IntegerMod(p:PositiveInteger): recip x == (c1, c2, g) := extendedEuclidean(x, q)$Rep --- not one? g => "failed" - not (g = 1) => "failed" + not one? g => "failed" positiveRemainder(c1, q) else @@ -93,8 +92,7 @@ IntegerMod(p:PositiveInteger): recip x == (c1, c2, g) := extendedEuclidean(x, p)$Rep --- not one? g => "failed" - not (g = 1) => "failed" + not one? g => "failed" positiveRemainder(c1, p) @ |