diff options
author | dos-reis <gdr@axiomatics.org> | 2011-03-12 22:56:37 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-03-12 22:56:37 +0000 |
commit | 6c75a87d8ee00d48a0f5703aa9c86591078a50d3 (patch) | |
tree | 28ff587bbc4d759dd0e3f96b156700ff01ba8c53 /src/algebra/sum.spad.pamphlet | |
parent | a2e3e641bdbcb6e77bbb572aea25a748a967abca (diff) | |
download | open-axiom-6c75a87d8ee00d48a0f5703aa9c86591078a50d3.tar.gz |
* src/algebra/: Systematically use not one? when comparing for
equality with 1.
Diffstat (limited to 'src/algebra/sum.spad.pamphlet')
-rw-r--r-- | src/algebra/sum.spad.pamphlet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/sum.spad.pamphlet b/src/algebra/sum.spad.pamphlet index e3d66075..aa5ae39f 100644 --- a/src/algebra/sum.spad.pamphlet +++ b/src/algebra/sum.spad.pamphlet @@ -269,13 +269,13 @@ GosperSummationMethod(E, V, R, P, Q): Exports == Impl where linearAndNNIntRoot(mp, v) == p := univariate(mp, v) - degree p ~= 1 => "failed" + not one? degree p => "failed" (p1 := retractIfCan(coefficient(p, 1))@Union(RN,"failed")) case "failed" or (p0 := retractIfCan(coefficient(p, 0))@Union(RN,"failed")) case "failed" => "failed" rt := -(p0::RN)/(p1::RN) - negative? rt or denom rt ~= 1 => "failed" + negative? rt or not one? denom rt => "failed" numer rt @ |