aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/interval.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/interval.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/interval.spad.pamphlet')
-rw-r--r--src/algebra/interval.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/interval.spad.pamphlet b/src/algebra/interval.spad.pamphlet
index 7fbd9fe8..94eea0f5 100644
--- a/src/algebra/interval.spad.pamphlet
+++ b/src/algebra/interval.spad.pamphlet
@@ -128,7 +128,7 @@ Interval(R:Join(FloatingPointSystem,TranscendentalFunctionCategory)): IntervalCa
contains?(u:%,f:R):Boolean == (f > inf(u)) and (f < sup(u))
- positive?(u:%):Boolean == inf(u) > 0
+ positive?(u:%):Boolean == positive? inf(u)
negative?(u:%):Boolean == negative? sup(u)
a:% < b:% ==
@@ -161,7 +161,7 @@ Interval(R:Join(FloatingPointSystem,TranscendentalFunctionCategory)): IntervalCa
a:Integer * b:% ==
- if (a > 0) then
+ if positive? a then
qinterval(a*inf(b),a*sup(b))
else if negative? a then
qinterval(a*sup(b),a*inf(b))