aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/galfact.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 19:17:32 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 19:17:32 +0000
commitc93e84048964194e5674e859d6bd8827010f09f6 (patch)
tree407ca23d232bf3f974550fce0175c49495ef49c0 /src/algebra/galfact.spad.pamphlet
parent52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 (diff)
downloadopen-axiom-c93e84048964194e5674e859d6bd8827010f09f6.tar.gz
* src/algebra/: Systematically use negative? when comparing for
greater than 0.
Diffstat (limited to 'src/algebra/galfact.spad.pamphlet')
-rw-r--r--src/algebra/galfact.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/galfact.spad.pamphlet b/src/algebra/galfact.spad.pamphlet
index 56778a4f..43d4e9cb 100644
--- a/src/algebra/galfact.spad.pamphlet
+++ b/src/algebra/galfact.spad.pamphlet
@@ -602,7 +602,7 @@ GaloisGroupFactorizer(UP): Exports == Implementation where
f := -f
-- is x**d factor of f
- if (d := minimumDegree f) > 0 then
+ if positive?(d := minimumDegree f) then
f := monicDivide(f,monomial(1,d)).quotient
factorlist := [[monomial(1,1),d]$ParFact]
@@ -672,7 +672,7 @@ GaloisGroupFactorizer(UP): Exports == Implementation where
f := -f
-- is x**d factor of f
- if (maxd := minimumDegree f) > 0 then
+ if positive?(maxd := minimumDegree f) then
f := monicDivide(f,monomial(1,maxd)).quotient
factorlist := [[monomial(1,1),maxd]$ParFact]
r := max(2,r-maxd)::N