aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/efstruc.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/efstruc.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/efstruc.spad.pamphlet')
-rw-r--r--src/algebra/efstruc.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/efstruc.spad.pamphlet b/src/algebra/efstruc.spad.pamphlet
index 414217a8..7f9829db 100644
--- a/src/algebra/efstruc.spad.pamphlet
+++ b/src/algebra/efstruc.spad.pamphlet
@@ -481,11 +481,11 @@ ElementaryFunctionStructurePackage(R,F): Exports == Implementation where
factdeprel(l, k) ==
((r := retractIfCan(n := first argument k)@Union(Z, "failed"))
- case Z) and (r::Z > 0) => [factorial(r::Z)::F]
+ case Z) and positive?(r::Z) => [factorial(r::Z)::F]
for x in l repeat
m := first argument x
((r := retractIfCan(n - m)@Union(Z, "failed")) case Z) and
- (r::Z > 0) => return([*/[(m + i::F) for i in 1..r] * x::F])
+ positive?(r::Z) => return([*/[(m + i::F) for i in 1..r] * x::F])
[true]
else