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/leadcdet.spad.pamphlet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/algebra/leadcdet.spad.pamphlet') diff --git a/src/algebra/leadcdet.spad.pamphlet b/src/algebra/leadcdet.spad.pamphlet index 47ac9d85..0c312914 100644 --- a/src/algebra/leadcdet.spad.pamphlet +++ b/src/algebra/leadcdet.spad.pamphlet @@ -62,7 +62,7 @@ LeadingCoefDetermination(OV,E,Z,P) : C == T q := unitNormal(lval.i).canonical for j in 0..(i-1)::NNI repeat y := distlist.((i-j)::NNI) - while y~=1 repeat + while not one? y repeat y := gcd(y,q) q := q quo y if q=1 then return false @@ -87,7 +87,7 @@ LeadingCoefDetermination(OV,E,Z,P) : C == T d := vl.i quo d unilist.i := d*unilist.i contm := contm quo d - if contm ~=1 then for i in 1..nf repeat pl.i := contm*pl.i + if not one? contm then for i in 1..nf repeat pl.i := contm*pl.i [pl,contm,unilist]$LeadFact distFact(contm:Z,unilist:List(BP),plead:FinalFact, -- cgit v1.2.3