aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/gaussian.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/gaussian.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/gaussian.spad.pamphlet')
-rw-r--r--src/algebra/gaussian.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/gaussian.spad.pamphlet b/src/algebra/gaussian.spad.pamphlet
index d8ac1583..44e9b918 100644
--- a/src/algebra/gaussian.spad.pamphlet
+++ b/src/algebra/gaussian.spad.pamphlet
@@ -327,12 +327,12 @@ ComplexCategory(R:CommutativeRing): Category ==
xx := x * y1
x1 := real(xx) rem r
a := x1
- if x1~=0 and sizeLess?(r, 2 * x1) then
+ if not zero? x1 and sizeLess?(r, 2 * x1) then
a := x1 - r
if sizeLess?(x1, a) then a := x1 + r
x2 := imag(xx) rem r
b := x2
- if x2~=0 and sizeLess?(r, 2 * x2) then
+ if not zero? x2 and sizeLess?(r, 2 * x2) then
b := x2 - r
if sizeLess?(x2, b) then b := x2 + r
y1 := (complex(a, b) exquo y1)::%