aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/gaussfac.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 22:56:37 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 22:56:37 +0000
commit6c75a87d8ee00d48a0f5703aa9c86591078a50d3 (patch)
tree28ff587bbc4d759dd0e3f96b156700ff01ba8c53 /src/algebra/gaussfac.spad.pamphlet
parenta2e3e641bdbcb6e77bbb572aea25a748a967abca (diff)
downloadopen-axiom-6c75a87d8ee00d48a0f5703aa9c86591078a50d3.tar.gz
* src/algebra/: Systematically use not one? when comparing for
equality with 1.
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)