2D Math
2D math is the default setting in Document Mode and Worksheet Mode. It is executable standard math notation displayed in a format similar to that found in business and education documents. You can make it nonexecutable if needed.
$\frac{\ⅆ}{\ⅆx}\left({x}^{2}{\ⅇ}^{3x}\right)$
2D math can be used in a document block as above or at a prompt (
).
In contrast to 2D math, Maple Input (1D math) is only used at a prompt. It is executable Maple notation, such as a command for a mathematical operation that Maple can evaluate.
See also Document Mode vs Worksheet Mode.

Basic Usage: 2D Math and 1D Math Input


2D Math

Default. Executable standard math notation.
>

$\int \mathrm{sin}\(x\)\phantom{\rule[0.0ex]{0.3em}{0.0ex}}\ⅆx$

${}{\mathrm{cos}}{}\left({x}\right)$
You do not require a semicolon or colon to terminate the command or expression.
When using 2D math, the Math mode icon is highlighted in the context bar.
To switch between 1D and 2D math at an input prompt, press the F5 key or click the entry mode icon in the context bar. Alternatively, access from the Insert>2D Math menu.
In a document, the 2D math input, the cursor appears with a gray underbar, and the background text while editing is blue. For example:
The input font is black. To change the appearance of 2D math, modify the character styles 2D Input (for Worksheet mode) and 2D Math (for Document mode).

1D Math

Executable Maple notation. An expression in the Maple language.
${{\(}{x}{\+}{1}{\)}}^{{2}}$
You do not require a semicolon or colon to terminate the command or expression.
When entering Maple input and text, the Text mode icon is highlighted in the context bar.
To switch between 1D and 2D math, press the F5 key or click the entry mode icon in the context bar. Alternatively, access from the Insert>Maple Input menu.
To customize your interface so 1D math (Maple Input) is the default at any prompt, change the Input Display setting in the Display tab of the Options Dialog.
In 1D math input, the input font is red.





Executing 2D Math



Worksheet Mode


•

All 2D math in a worksheet can be executed and displayed by pressing the Enter key.

•

For 2D math in Document Blocks in a worksheet, see the following section.



Document Mode


Execute 2D math in Document Mode and Document Blocks by using any of the following methods.
•

Press Alt + Enter (Alt + Return, for Mac) or Ctrl + = (Command + =, for Mac). This evaluates and displays results inline.

•

Use the Evaulate menu item Evaluate and Display Inline. (This can also be invoked through the contextsensitive menu.)

•

Use the Evaluate menu item Evaluate.

•

Press Enter. This evaluates and displays results on the next line.

You can make a 2D math expression nonexecutable. For more information, see 2D Math Details.



Using a Palette with 2D Math Input


To use a palette with 2D math:

1. Ensure the palette you require is visible. If necessary, from the View menu, select Palettes>Show Palette> required palette.


2. With your mouse, click a palette expression. The expression is displayed in 2D math notation in the execution group of the worksheet.


4. The first option is highlighted. Enter your expression, and if necessary use the Tab key to move to the next item.

•

Palettes make entering expressions more efficient and reduce the possibility of introducing typing errors.

•

Your worksheet uses standard notation for mathematical content.



Converting 1D to 2D Math


To convert 1D to 2D math:

1. Enter an expression in 1D math notation. (Press F5 to switch between 1D and 2D math entry.)


2. From the Context Panel, select Convert To>2D Math Input. The expression is now displayed in 2D math input notation.


3. Press Enter to evaluate the expression.

Important: Mixed 1D math and 2D math is not supported and not recommended stylistically. You cannot mix 1D and 2D math inside one command. For example, the following is not supported.
>

$f\u2254\mathbf{proc}\left(x\right)$x^2$\mathbf{end}\mathbf{proc}semi;$

Error, unterminated procedure
${}$
Error, missing operator or `;`
You can, however, have a wellformed 2D expression and a wellformed 1D expression in the same execution group. For example,
>

$f\u2254\mathbf{proc}\left(x\right)x\mathbf{end}\mathbf{proc}semi;$x^2;

${f}{:=}{\mathbf{proc}}\left({x}\right)\phantom{\rule[0.0ex]{0.3em}{0.0ex}}{x}\phantom{\rule[0.0ex]{0.0em}{0.0ex}}{\mathbf{end\; proc}}$
${{x}}^{{2}}$


Shortcut Keys for 2D Math


Symbol/Format

Key

Automatically Generated in Document

enter/exit 2D math

F5

Example using fractions: $\frac{1}{4}$ versus${}$1/4

command/symbol completion

•

Esc, Mac, Windows, and Linux

•

Ctrl + Shift + Space, Linux



fraction

/ (forward slash)
or
// (two forward slashes)

$\frac{1}{4}$

exponent (superscript)

^ (caret)

${x}^{2}$
Use the right arrow key to leave the superscript area.

atomic subscript

_ _(two underscores)

$\mathrm{x\_\_a}$
Use the right arrow key to leave the subscript area.

square root

sqrt, and then commandsymbol completion keys

$\sqrt{25}$${}$

navigating expressions

Arrow keys




The Typesetting Rule Assistant is a graphical user interface for changing the current typesetting rules. These rules control the input and typesetting of 2D math within the standard worksheet interface. For more information, see Typesetting Rule Assistant.
The 2D Math Details page gives more information on entering 2D math.


Formatting Options with 2D Math


The Format menu provides the following options which are useful for 2D math:
•

Convert To — For details, see the Convert To help page.

Most of these options are also available through the Context Panel. For more information on the Context Panel, see Context Panel.





