From 11eebf207528f86dfa4556be3b2cc7cba57244a6 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 13 Mar 2011 03:43:50 +0000 Subject: * src/algebra/: Systematically use not zero? when comparing for equality with 0. --- src/algebra/gaussfac.spad.pamphlet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algebra/gaussfac.spad.pamphlet') 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, -- cgit v1.2.3