ScriptFormulaFormatΒΆ

formula.spad line 1

ScriptFormulaFormat provides a coercion from OutputForm to IBM SCRIPT/VS Mathematical Formula Format. The basic SCRIPT formula format object consists of three parts: a prologue, a formula part and an epilogue. The functions prologue, formula and epilogue extract these parts, respectively. The central parts of the expression go into the formula part. The other parts can be set (setPrologue!, setEpilogue!) so that contain the appropriate tags for printing. For example, the prologue and epilogue might simply contain ”:df.” and ”:edf.” so that the formula section will be printed in display math mode.

=: (%, %) -> Boolean
from BasicType
~=: (%, %) -> Boolean
from BasicType
coerce: % -> OutputForm
from CoercibleTo OutputForm
coerce: OutputForm -> %
coerce(o) changes o in the standard output format to SCRIPT formula format.
convert: (OutputForm, Integer) -> %
convert(o, step) changes o in standard output format to SCRIPT formula format and also adds the given step number. This is useful if you want to create equations with given numbers or have the equation numbers correspond to the interpreter step numbers.
display: % -> Void
display(t) outputs the formatted code t so that each line has length less than or equal to the value set by the system command spadsys{)set output length}.
display: (%, Integer) -> Void
display(t, width) outputs the formatted code t so that each line has length less than or equal to spadvar{width}.
epilogue: % -> List String
epilogue(t) extracts the epilogue section of a formatted object t.
formula: % -> List String
formula(t) extracts the formula section of a formatted object t.
hash: % -> SingleInteger
from SetCategory
hashUpdate!: (HashState, %) -> HashState
from SetCategory
latex: % -> String
from SetCategory
new: () -> %
new() create a new, empty object. Use setPrologue!, setFormula! and setEpilogue! to set the various components of this object.
prologue: % -> List String
prologue(t) extracts the prologue section of a formatted object t.
setEpilogue!: (%, List String) -> List String
setEpilogue!(t, strings) sets the epilogue section of a formatted object t to strings.
setFormula!: (%, List String) -> List String
setFormula!(t, strings) sets the formula section of a formatted object t to strings.
setPrologue!: (%, List String) -> List String
setPrologue!(t, strings) sets the prologue section of a formatted object t to strings.

BasicType

CoercibleTo OutputForm

SetCategory