In some cases it is possible to invoke a NeXtMidas command, most importantly
CALCULATOR
, using function-like syntax on the command line of a
different operation. The following words are reserved to allow the in-lining:
For example,
nM>res x CALC(1,2,*)
Sets the result x
to 2.
See the INVOKE
command to learn how to call commands NOT
IN THE NEXTMIDAS COMMAND DICTIONARY from the macro language. For example,
nM>invoke D:pi java.lang.Math.pi nM>invoke D:dval java.lang.Math.sin(pi)
pi
and calls the static function sin
in the Java
Math class and returns the output into the result DVAL
.