Evaluates y numerically and assigns its contents
to x. Variables and functions defined with this operator
are only defined locally within the current definition, for example, within a program.
Returns the value of the left-hand-side.
Operands:
x is any valid Mathcad name
for a variable or function.
y is any valid Mathcad expression.
Notes:
Local variables or functions defined with this operator may be assigned
to values from the worksheet. For example, it's possible to define a:=
2 in your worksheet, then define a local variable b
← a inside a program.
If the name of a local variable is the same as the worksheet variable or
function used to initialize it, it only takes the worksheet value the first
time it is assigned. Subsequent references to the same name use the local
value rather than the global one. For example, if the function g(x):=
x + 1 is defined in your worksheet, and you create a variable g
← g(2), all subsequent program references to the name g
use the local variable definition of 3, and no longer recognize it as
a function name. You can always escape to the worksheet definition using the
[doc]namespace
operator.
When assigning functions locally, you may either assign a function with
an argument list, much as you would for a worksheet function, or just assign
the function name to an expression that evaluates to a function, for example,
f ← Fn, where F
is an array of function names.