.FUNC |
Function
This command defines functions used in expressions.
.FUNC <name> ([arg]*) <body> |
name
Is the name of the function. Functions cannot be redefined and the function name must not be the same as any of the predefined functions.
arg
Specifies up to 10 arguments in a definition. The number of arguments in the use of a function must agree with the number in the definition. Functions can be defined as having no arguments, but the parentheses are still required.
body
Math expression.
.FUNC MAX3(A,B,C) MAX(MAX(A,B),C)