In this section, we will review some of the most common errors encountered when using Maple. Many of these errors are caused when using 2D Math, which makes complicated expressions look pretty but can cause other issues. For a description of font styles, see The Maple Environment.
In Maple, we will use several types of brackets such as parentheses, square brackets, and curly braces. Maple refers to these as delimiters. If these delimiters are not found in pairs, then Maple will be unable to understand the syntax of your command.
The % shortcut will only use the output command that was last run and not necessarily the output of the command that is on the Maple input immediately above. It is usually a good practice to use the % operator on the same line as the previous command to avoid this issue.
In this example, the expected output of the second command is the decimal value of \(\cos(\pi)\text{,}\) which is equal to \(-1\text{.}\) However, it appears that the second command was run again after the running third, producing the decimal approximation of the third command.
Whenever two variables (such as \(x\) and \(y\)) are multiplied together, you must explicitly include the multiplication sign between them. If no * or space is included between the variables, it may be interpreted as an entirely different variable name.
Spaces and Parentheses: Multiplication versus Functions.
When typing in 2D Math (the default font), spaces and parentheses may be interpreted by Maple in unintended ways. When using commands, make sure that there is no space between the command name and its parentheses. This will be treated as multiplication.
In this example, Maple thinks that the word βplotβ should be multiplied by the expression in parentheses. This is why the name of the command appears in the output.
Clearly, Maple should be able to expand this basic expression. However, it misinterprets the userβs input as being function notation. Maple reads this expression as β\(x\) of \(x^3-1\)β.
Assigning Expressions to \(x\) or Other Common Variable Names.
Itβs never a good idea to assign an expression to \(x\text{,}\)\(y\text{,}\)\(t\text{,}\) or other common variable names. If you want to unassign everything at once, you can do this with the restart command on a separate line.
In this example, the value \(3\) is assigned to \(x\text{,}\) so the expression \(x^2-4x-12\) is equal to the value \(-15\text{.}\) This is remedied after using the restart command.
Changing the Order of the Parameters in a Command.
Many commands have multiple parameters and often the order in which the parameters is listed is important. Typing the parameters in an incorrect order in certain commands may cause an error message to be displayed when the command is executed.
Assigning a Function and Not Using Function Notation.
If you have assigned a function (such as \(f(x)\)) in Maple, make sure to use function notation in other commands, rather than using only the name of the function.
In this example, the Int() command and int() command behave differently. Using Int() followed by value(%) is a good way to display the integral and then evaluate it.