aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/gaussfac.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/gaussfac.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/gaussfac.spad.pamphlet')
-rw-r--r--src/algebra/gaussfac.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/gaussfac.spad.pamphlet b/src/algebra/gaussfac.spad.pamphlet
index bb4cb963..79d32551 100644
--- a/src/algebra/gaussfac.spad.pamphlet
+++ b/src/algebra/gaussfac.spad.pamphlet
@@ -180,7 +180,7 @@ GaussianFactorizationPackage() : C == T
prime?(n)$IntegerPrimesPackage(Z) => true
re : Z := real a
im : Z := imag a
- re~=0 and im~=0 => false
+ not zero? re and not zero? im => false
p : Z := abs(re+im) -- a is of the form p, -p, %i*p or -%i*p
p rem 4 ~= 3 => false
-- return-value true, if p is a rational prime,