Error, invalid operator parameter name
Description
Examples
This error occurs when you create a functional operator incorrectly. The parser expects a symbol, or sequence of symbols in parentheses, as the parameter list (the portion of the functional operator to the left of the arrow). For more information, see Functional Operators. You can use the type command to see if the entry to the left of the arrow is of type symbol.
Example 1
3→x2
type3,symbol
false
This example did not use a symbol. as the parameter for creating the functional operator.
Solution:
To fix this error, use a symbol instead.
x→x2
x↦x2
typex,symbol
true
Example 2
x1,y→x1+y2
typex1,symbol
This example uses a sequence for the parameter list, but not all of the values in the sequence are of type symbol. In particular, using a subscripted name (for example, x1) within the parameter list is not allowed.
To fix this error, ensure that all values within the parameter list are of type symbol.
x,y→x1+y2
x,y↦x1+y2
Example 3
In this example, the declaration seems correct, however Pt is not of type symbol.
Pt→t2
typePt,symbol
You can define the functional operator P in the following way:
P≔t→t2
P≔t↦t2
P4
16
See Also
operators/functional
type
Download Help Document