aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/divisor.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/divisor.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/divisor.spad.pamphlet')
-rw-r--r--src/algebra/divisor.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/divisor.spad.pamphlet b/src/algebra/divisor.spad.pamphlet
index 42056811..86feaf9e 100644
--- a/src/algebra/divisor.spad.pamphlet
+++ b/src/algebra/divisor.spad.pamphlet
@@ -440,7 +440,7 @@ ModularHermitianRowReduction(R): Exports == Implementation where
qsetelt!(x, k, j, 0)
un := unitNormal qelt(x,i,j)
qsetelt!(x,i,j,un.canonical)
- if un.associate ~= 1 then for jj in (j+1)..ncols repeat
+ if not one?(un.associate) then for jj in (j+1)..ncols repeat
qsetelt!(x,i,jj,un.associate * qelt(x,i,jj))
xij := qelt(x,i,j)
@@ -720,7 +720,7 @@ HyperellipticFiniteDivisor(F, UP, UPUP, R): Exports == Implementation where
v::UP
redpolyIfCan(h, a) ==
- degree(p := lift h) ~= 1 => "failed"
+ not one? degree(p := lift h) => "failed"
q := - coefficient(p, 0) / coefficient(p, 1)
rec := extendedEuclidean(denom q, a)
not ground?(rec.generator) => "failed"