aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/gaussian.spad.pamphlet
diff options
context:
space:
mode:
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)::%