aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/ghensel.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-13 03:43:50 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-13 03:43:50 +0000
commit11eebf207528f86dfa4556be3b2cc7cba57244a6 (patch)
tree17c1ed9132ec874b14d2dcd137ac16a91e7a5b27 /src/algebra/ghensel.spad.pamphlet
parent6c75a87d8ee00d48a0f5703aa9c86591078a50d3 (diff)
downloadopen-axiom-11eebf207528f86dfa4556be3b2cc7cba57244a6.tar.gz
* src/algebra/: Systematically use not zero? when comparing for
equality with 0.
Diffstat (limited to 'src/algebra/ghensel.spad.pamphlet')
-rw-r--r--src/algebra/ghensel.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/ghensel.spad.pamphlet b/src/algebra/ghensel.spad.pamphlet
index baf7e85c..64ff2a89 100644
--- a/src/algebra/ghensel.spad.pamphlet
+++ b/src/algebra/ghensel.spad.pamphlet
@@ -63,7 +63,7 @@ GeneralHenselPackage(RP,TP):C == T where
exactquo(u:TP,v:TP,p:RP):Union(TP,"failed") ==
invlcv:=modInverse(leadingCoefficient v,p)
r:=monicDivide(u,reduction(invlcv*v,p))
- reduction(r.remainder,p) ~=0 => "failed"
+ not zero? reduction(r.remainder,p) => "failed"
reduction(invlcv*r.quotient,p)
FP:=EuclideanModularRing(RP,TP,RP,reduction,merge,exactquo)
@@ -112,7 +112,7 @@ GeneralHenselPackage(RP,TP):C == T where
fln = nfln and zero?(err:=poly-*/fln) => leave "finished"
fln := nfln
Modulus := prime*Modulus
- if constp~=0 then fln:=cons(constp,fln)
+ if not zero? constp then fln:=cons(constp,fln)
[fln,Modulus]
completeHensel(m:TP,tl1:List TP,prime:RP,bound:PI) ==