aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/gaussfac.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/gaussfac.spad.pamphlet')
-rw-r--r--src/algebra/gaussfac.spad.pamphlet6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/algebra/gaussfac.spad.pamphlet b/src/algebra/gaussfac.spad.pamphlet
index 8f922d92..bb4cb963 100644
--- a/src/algebra/gaussfac.spad.pamphlet
+++ b/src/algebra/gaussfac.spad.pamphlet
@@ -132,7 +132,7 @@ GaussianFactorizationPackage() : C == T
result : List FFE :=[]
unity:ZI:=1$ZI
- if d~=1 then
+ if not one? d then
a:=(a exquo d)::Z
b:=(b exquo d)::Z
r:= intfactor(d)
@@ -163,13 +163,13 @@ GaussianFactorizationPackage() : C == T
m:=m quo z
result:=concat(part,result)
- if m~=1 then unity:=unity * m
+ if not one? m then unity:=unity * m
makeFR(unity,result)
---- write p prime like sum of two squares ----
sumSquares(p:Z) : List Z ==
p=2 => [1,1]
- p rem 4 ~= 1 => error "no solutions"
+ not one?(p rem 4) => error "no solutions"
sumsq1(p)