From 6c75a87d8ee00d48a0f5703aa9c86591078a50d3 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 12 Mar 2011 22:56:37 +0000 Subject: * src/algebra/: Systematically use not one? when comparing for equality with 1. --- src/algebra/ffpoly2.spad.pamphlet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algebra/ffpoly2.spad.pamphlet') diff --git a/src/algebra/ffpoly2.spad.pamphlet b/src/algebra/ffpoly2.spad.pamphlet index 76c5780f..b4f6b767 100644 --- a/src/algebra/ffpoly2.spad.pamphlet +++ b/src/algebra/ffpoly2.spad.pamphlet @@ -108,7 +108,7 @@ FiniteFieldPolynomialPackage2(F,GF):Exports == Implementation where h:=gcd(stillToFactor,trModp +$(SUP F) _ (index(j pretend PI)$GF::F::(SUP F)))$(SUP F) -- make the gcd polynomial monic - if leadingCoefficient(h)$(SUP F) ~= 1$F then + if not one? leadingCoefficient(h)$(SUP F) then h:= (inv leadingCoefficient(h)) * h degh:=degree(h)$(SUP F) degSTF:=degree(stillToFactor)$(SUP F) -- cgit v1.2.3