Error, invalid operator parameter name - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : invalidoperatorparametername

Error, invalid operator parameter name

 

Description

Examples

Description

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.

Examples

Example 1

3x2

Error, invalid operator parameter name

type3,symbol

false

(2.1)

This example did not use a symbol. as the parameter for creating the functional operator.

 

Solution:

To fix this error, use a symbol instead.

xx2

xx2

(2.2)

typex,symbol

true

(2.3)

Example 2

x1,yx1+y2

Error, invalid operator parameter name

typex1,symbol

false

(2.4)

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.

 

Solution:

To fix this error, ensure that all values within the parameter list are of type symbol.

x,yx1+y2

x,yx1+y2

(2.5)

typex,symbol

true

(2.6)

Example 3

In this example, the declaration seems correct, however Pt is not of type symbol.

Ptt2

Error, invalid operator parameter name

typePt,symbol

false

(2.7)

Solution:

You can define the functional operator P in the following way:

Ptt2

Ptt2

(2.8)

P4

16

(2.9)

See Also

operators/functional

type