Example 1
One common error that users make is supplying arguments of the wrong type.
Solution:
In this case, the first argument should be of type algebraic instead of type list.
Example 2
>
|
|
Another common error is supplying the wrong number of arguments.
Solution:
Make sure that the correct number and type of arguments have been entered.
>
|
|
| (1.1.2) |
You can see the correct calling sequences for any Maple command, including how to specify the arguments, on the help page for that command. For this example, see inttrans[fourier].
Example 3
>
|
|
>
|
|
Sometimes, a user error may be generated in a routine different from the outmost routine being called.
Solution:
Maple evaluates the inputs to a procedure such as plot before it calls the procedure, resulting in being called with the symbolic argument . You can delay the evaluation of the input using unevaluation quotes. For more information, see the related error help page.
Example 4
>
|
|
A common error is the misuse of previous assignments. Sometimes, you assign a name to a value or expression and then later use that name expecting it to be a variable.
Solution:
To avoid this error, you can use a different variable than in the second expression, unassign the variable , or clear Maple's internal memory using restart, which clears all variable assignments.
Example 5
One of the most common errors is a syntax error, often created by mistyping the input... that is, a typo. In this case, the required finishing parenthesis is missing.
Solution:
To fix this error, add the missing parenthesis.
Example 6
>
|
|
Sometimes a syntax error is more involved. In this example, the command plots[complexplot] is used, but with arbitrary arguments .
Solution:
To determine the correct syntax for this command, go to the help page for the related command (which is given within the error message in parentheses). In this case, see the plots[complexplot] help page. This page will explain the proper syntax for the arguments or other parts of the calling sequence. In this particular example, valid arguments for this command could include the following:
>
|
|