diff options
author | dos-reis <gdr@axiomatics.org> | 2011-03-12 19:17:32 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-03-12 19:17:32 +0000 |
commit | c93e84048964194e5674e859d6bd8827010f09f6 (patch) | |
tree | 407ca23d232bf3f974550fce0175c49495ef49c0 /src/algebra/prs.spad.pamphlet | |
parent | 52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 (diff) | |
download | open-axiom-c93e84048964194e5674e859d6bd8827010f09f6.tar.gz |
* src/algebra/: Systematically use negative? when comparing for
greater than 0.
Diffstat (limited to 'src/algebra/prs.spad.pamphlet')
-rw-r--r-- | src/algebra/prs.spad.pamphlet | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/algebra/prs.spad.pamphlet b/src/algebra/prs.spad.pamphlet index 7804b4fb..1155ee6d 100644 --- a/src/algebra/prs.spad.pamphlet +++ b/src/algebra/prs.spad.pamphlet @@ -889,7 +889,7 @@ PseudoRemainderSequence(R, polR) : Specification == Implementation where resultantReduit(P : polR, Q : polR) : R == UV := subResultantGcdEuclidean(P, Q) UVs : polR := UV.gcd - degree(UVs) > 0 => 0 + positive? degree(UVs) => 0 l : List(R) := concat(coefficients(UV.coef1), coefficients(UV.coef2)) return (LC(UVs) exquo gcd(l))::R @@ -897,7 +897,7 @@ PseudoRemainderSequence(R, polR) : Specification == Implementation where Record(coef1 : polR, coef2 : polR, resultantReduit : R) == UV := subResultantGcdEuclidean(P, Q) UVs : polR := UV.gcd - degree(UVs) > 0 => construct(0::polR, 0::polR, 0::R) + positive? degree(UVs) => construct(0::polR, 0::polR, 0::R) l : List(R) := concat(coefficients(UV.coef1), coefficients(UV.coef2)) gl : R := gcd(l) c1 : polR := (UV.coef1 exquo gl)::polR @@ -909,7 +909,7 @@ PseudoRemainderSequence(R, polR) : Specification == Implementation where Record(coef2 : polR, resultantReduit : R) == UV := subResultantGcdEuclidean(P, Q) UVs : polR := UV.gcd - degree(UVs) > 0 => construct(0::polR, 0::R) + positive? degree(UVs) => construct(0::polR, 0::R) l : List(R) := concat(coefficients(UV.coef1), coefficients(UV.coef2)) gl : R := gcd(l) c2 : polR := (UV.coef2 exquo gl)::polR |