aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/formula.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/formula.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/formula.spad.pamphlet')
-rw-r--r--src/algebra/formula.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/formula.spad.pamphlet b/src/algebra/formula.spad.pamphlet
index 19011081..750bf710 100644
--- a/src/algebra/formula.spad.pamphlet
+++ b/src/algebra/formula.spad.pamphlet
@@ -231,7 +231,7 @@ ScriptFormulaFormat(): public == private where
lss > len => l := concat(ss,l)$List(S)
ls := ls + lss + 1
s := concat(s,concat(ss," ")$S)$S
- if ls > 0 then l := concat(s,l)$List(S)
+ if positive? ls then l := concat(s,l)$List(S)
reverse l
group str ==
@@ -403,7 +403,7 @@ ScriptFormulaFormat(): public == private where
%integer?(expr)$Foreign(Builtin) =>
i := expr : Integer
if negative? i or (i > 9) then group str else str
- (i := position(str,specialStrings)) > 0 =>
+ positive?(i := position(str,specialStrings)) =>
specialStringsInFormula.i
str
l : L E := (expr pretend L E)