HELP
An object that performs a user-defined
mathematical operation specified by a
mathematical formula.

USE
Use Formula to execute any desired
mathematical formula using the syntax defined
under Formula.  The default Formula object has
one
input (A) and an example formula (2*A+3).
However, the example can be replaced with any
desired formula, and any number of inputs can
be added as required by the user-defined
formula.  (If the formula requires no inputs,
you may delete all inputs.)

The input(s) can be of any data type.  For
a relational formula (e.g.  A <= B), the
resulting output is a scalar Int32 with the
value 0 ("false") or 1 ("true").  For other
mathematical formulas, the resulting output
is of a data type consistent with the inputs
and with the formula itself.  Refer to the
section "Mathematically Processing Data" in
chapter 3 for a discussion of the rules that
determine the data type and shape of the
result of a formula.

LOCATION
Math ==> Formula

OPEN VIEW PARAMETERS

* Formula field (unlabeled) - Default is
2*A+3.  You can enter any mathematical
formula consisting of the operators and
functions described under Formula.  When you
enter a formula, its syntax is automatically
checked and any errors are reported.  The
Formula field can be added as a control
input.

NOTES
All of the supported dyadic operators and
functions are described under Formula.  Any of
these operators and functions, including
calls to User Functions, compiled functions,
and remote functions can be used in a Formula
object to construct a mathematical formula
using the described syntax.

The other Math and AdvMath objects are
really just simple examples of Formula
objects, but only the Formula object allows
you to edit the mathematical relationship in
the open view.

Although you could perform a mathematical
calculation using several individual Math and
AdvMath objects, a single Formula object can
perform the same calculation with higher
performance.  This is because a fixed amount
of overhead is associated with each graphical
object in the model, so a model with fewer
objects will run faster.

SEE ALSO
Chapter 3, "Formula (Math and AdvMath)
Reference", User Function
