aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/leadcdet.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 22:56:37 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 22:56:37 +0000
commit6c75a87d8ee00d48a0f5703aa9c86591078a50d3 (patch)
tree28ff587bbc4d759dd0e3f96b156700ff01ba8c53 /src/algebra/leadcdet.spad.pamphlet
parenta2e3e641bdbcb6e77bbb572aea25a748a967abca (diff)
downloadopen-axiom-6c75a87d8ee00d48a0f5703aa9c86591078a50d3.tar.gz
* src/algebra/: Systematically use not one? when comparing for
equality with 1.
Diffstat (limited to 'src/algebra/leadcdet.spad.pamphlet')
-rw-r--r--src/algebra/leadcdet.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
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,