diff options
author | dos-reis <gdr@axiomatics.org> | 2011-03-13 03:43:50 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-03-13 03:43:50 +0000 |
commit | 11eebf207528f86dfa4556be3b2cc7cba57244a6 (patch) | |
tree | 17c1ed9132ec874b14d2dcd137ac16a91e7a5b27 /src/algebra/moddfact.spad.pamphlet | |
parent | 6c75a87d8ee00d48a0f5703aa9c86591078a50d3 (diff) | |
download | open-axiom-11eebf207528f86dfa4556be3b2cc7cba57244a6.tar.gz |
* src/algebra/: Systematically use not zero? when comparing for
equality with 0.
Diffstat (limited to 'src/algebra/moddfact.spad.pamphlet')
-rw-r--r-- | src/algebra/moddfact.spad.pamphlet | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/moddfact.spad.pamphlet b/src/algebra/moddfact.spad.pamphlet index 5cb2893d..9cf3d902 100644 --- a/src/algebra/moddfact.spad.pamphlet +++ b/src/algebra/moddfact.spad.pamphlet @@ -79,7 +79,7 @@ ModularDistinctDegreeFactorizer(U):C == T where exactquo(u:U,v:U,p:I):Union(U,"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) EMR := EuclideanModularRing(Integer,U,Integer, reduction,merge,exactquo) |