diff options
Diffstat (limited to 'src/algebra/formula.spad.pamphlet')
-rw-r--r-- | src/algebra/formula.spad.pamphlet | 4 |
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) |