diff options
Diffstat (limited to 'src/algebra/modmon.spad.pamphlet')
-rw-r--r-- | src/algebra/modmon.spad.pamphlet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/modmon.spad.pamphlet b/src/algebra/modmon.spad.pamphlet index cc8bebec..0d4241e2 100644 --- a/src/algebra/modmon.spad.pamphlet +++ b/src/algebra/modmon.spad.pamphlet @@ -75,7 +75,7 @@ ModMonic(R,Rep): C == T setPoly (mon : Rep) == mon =$Rep m => mon oldm := m - leadingCoefficient mon ^= 1 => error "polynomial must be monic" + leadingCoefficient mon ~= 1 => error "polynomial must be monic" -- following copy code needed since FFPOLY can modify mon copymon:Rep:= 0 while not zero? mon repeat @@ -141,7 +141,7 @@ ModMonic(R,Rep): C == T frobenius(a:%):% == aq:% := 0 - while a^=0 repeat + while a~=0 repeat aq:= aq + leadingCoefficient(a)*frobeniusPower(degree a) a := reductum a aq |