Enter Expressions in Maple Worksheets

The following assumes that the Input display option is set to Maple Notation (that is, 1D math) in the Display tab of the Options dialog. For details, see Options>Display.

•

For information on using the default 2D math mode in worksheets, see 2D Math.


Entering Expressions as Maple Input



Enter Maple commands at the Maple prompt. Maple recognizes your entry as Maple input and executes the command.

1.

Enter the Maple input, followed by either a semicolon, no punctuation, or a colon.


Example 1: Maple Input Followed by Either a Semicolon or No Punctuation



You can use a semicolon or no punctuation to terminate a Maple input command and generate the output as shown:

${\left({x}{\+}{1}\right)}^{{2}}$
 (1) 
${\left({x}{\+}{1}\right)}^{{2}}$
 (2) 


Example 2: Maple Input Followed by a Colon



If the input ends with a colon, the result is computed but not displayed.



Assigning Expressions to Names



Assign a Maple expression to a name so that you can use the expression again in subsequent calculations.

>

expn := 3 * sin(x) + 2 * cos(x);

${\mathrm{expn}}{:=}{3}{}{\mathrm{sin}}{}\left({x}\right){\+}{2}{}{\mathrm{cos}}{}\left({x}\right)$
 (3) 
${\mathrm{sin}}{}\left({x}\right){}\left({3}{}{\mathrm{sin}}{}\left({x}\right){\+}{2}{}{\mathrm{cos}}{}\left({x}\right)\right)$
 (4) 

You can also assign equations to names.

${\mathrm{eqn}}{:=}{y}{\=}{5}{}{x}{}{3}$
 (5) 

Define your own functions.

${f}{:=}{x}{\→}{2}{}{x}$
 (6) 
${2}{}{y}{\+}{2}$
 (8) 


Making Maple Commands Inert



As you develop your worksheet, you can use inert Maple commands to help identify each step of the problemsolving process or to delay evaluation.




Examples of Maple Functions



Maple functions include most standard mathematical functions such as sin, sinh, arcsin, exp, ln, sqrt, and binomial.


More advanced Maple functions include the differential operator, the sequence function, and the composition function.



Examples of Maple Objects



Maple objects include expression sequences, lists, and sets.







Download Help Document
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.