Error, illegal use of an object as a name
This error occurs when an object that is not a name is used where Maple expects a name. This will occur when you make an assignment (using :=) and the left-hand side is not an assignable object or a sequence of assignable objects. The same issue occurs when you use a nonassignable object as an index variable or in another place where a name is expected.
The problem is that the left-hand side is a list. It must be a name or a sequence of names.
Solution: To make multiple assignments, use two assignment statements or put a sequence of names on the left-hand side.
I is used to denote the imaginary unit (−1) in Maple. You cannot assign to this name or use it for an index variable.
Solution: Use a different name.
myProcedure≔procn∷evaln n2 end proc
In this procedure, the evaln modifier expects a parameter that evaluates to a name.
Solution: Call the myProcedure with a parameter that is assignable.
Download Help Document