next up previous contents index
Next: STRING_OPERATE perform Up: TOP Commands Previous: SET set   Contents   Index

OPERATE -- perform mathematic operation

OPERATION = $\langle{\tt string:1}\rangle$ 'SUM' operation to perform: 'SUM' | 'MULTIPLY' | 'DIVIDE' | 'POWER' | 'MOD'
RESULT = $\langle{\tt string:0}\rangle$ '' variable name for the result of operation
ARGUMENTS = $\langle{\tt real:0}\rangle$ 0.00 real arguments to the math operation

Description:
This command performs a specified mathematical operation. There can be up to MRPRM (120) operands for the 'SUM' and 'MULTIPLY' operations, but only two for 'DIVIDE' and 'POWER'. The RESULT value has to be the name of a real variable.



Ben Webb 2004-04-20