Entering Commands in 2-D Math - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Create Maple Worksheets : Enter Expressions : Enter 2-D Math : worksheet/documenting/2DMathCommands

Entering Commands in 2-D Math

Maple has an extensive library of mathematical commands. These can be entered using 1-D Math or 2-D Math. With 2-D Math, you can use the command form or the notation form, both described below. When calling commands with options, the command form must be used in most cases.

 

Command and Notation Forms

Using Command Options

See Also

Command and Notation Forms

Commands may be entered in 2-D math as they are entered in 1-D math. This is called command form, as the command name is typed in full. Here is an example using the int command, using both 1-D and 2-D math input.

int(x^2+x/5, x=0..4);

34415

(1.1)

intx2+x5, x=0..4;

34415

(1.2)

 

Some commands allow alternative forms of entry that use mathematical notation. Many of these forms are available in Maple's palettes. For example, the integral computed above can be entered using the definite integration template from the Expression palette:

04x2+x5 ⅆx

34415

(1.3)

 

Additional forms are available through command-completion. For example, if you type int and invoke command completion, you will be offered, among other choices, the option to compute the Cauchy principal value:

PV121x3 ⅆx

38

(1.4)

Using Command Options

Many Maple commands offer options that let you control various aspects of the command's behavior or the form of the output. For example, the int/details help page shows several options for the int command. In general, when using an option, it is necessary to use the command form rather than mathematical notation. You can still use 2-D math notation for the command's arguments. However, the command name must be given explicitly. In the example below, the option 'numeric' causes the command to return a floating-point result.

intx2+x5, x=0..4, numeric

22.93333333

(2.1)

See Also

2-D Math, Entering Expressions