Mac - Maple Help

Quick Reference Card

Mac® version

Document Mode vs. Worksheet Mode

Maple offers two primary modes of problem entry and content creation: Document mode and Worksheet mode. Both modes have respective advantages and you can easily switch from one mode to the other for maximum flexibility.  See worksheet for more information on the worksheet interface.

Document Mode

 • Quick problem-solving and free-form, rich content composition
 • No prompt (>) displayed
 • Math is entered and displayed in 2-D
 • Solve math problems with context-sensitive options on input and output

Worksheet Mode

 • Enter problems at a prompt (>)
 • Math entered and displayed in 2-D or 1-D
 • Solve math problems with context-sensitive options on output

Document mode lets you create rich content. For example, the following solves for $x$ without any commands:  $\frac{\left(x-2\right)}{\mathrm{α}}=1$$\stackrel{\text{solutions for x}}{\to }$${\mathrm{α}}{+}{2}$

The command to perform the same operation in Worksheet mode is in 2-D (Math) Input:

 > $\mathrm{solve}\left(\frac{x-2}{\alpha }=1,x\right)$
 ${\mathrm{α}}{+}{2}$ (1)

or in 1-D (Maple) Input:

 > solve((x-2)/alpha=1,x);
 ${\mathrm{α}}{+}{2}$ (2)

Toggle Math/Text entry mode

[F5]

or on context bar

Toggle 2-D/1-D Math entry mode

[F5] 2-D black font, 1-D red font

Evaluate math expression and display result inline

[Command][=]

Evaluate math expression and display result on new line

[Return]

Evaluate math expression and display result on new line

[Return]

Continue on next line without executing

[Shift][Return]

Toggle executable / nonexecutable math

[Shift][F5]

Hide commands. Show only results.

Highlight commands to be hidden. Edit → Document Blocks → Create Document Block

Switch to Worksheet mode (insert prompt)

on toolbar

Show hidden commands

Edit → Document Blocks → Show Command

Common Operations Available in Both Document and Worksheet Modes

 Refer to previous result using equation numbers [Command][L] then enter equation number in dialog Recompute calculations within a line on toolbar Recompute all calculations in a document on toolbar Symbol selection, e.g. $\epsilon$ (epsilon) Enter leading characters [Esc] (or [Command][Shift][Space]), e.g. eps[Esc] Command completion, e.g. Lambert W function Enter leading characters [Esc] (or [Command][Shift][Space]), e.g. Lamb[Esc] Perform context operation on math expression Use the Context Panel Insert prompt on toolbar Insert text paragraph on toolbar Insert white space above cursor [Home][Enter] Drag a copy of an expression to a new location Highlight the expression, hold [Command], and drag to new location

2-D Math Editing Operations, Keyboard Shortcuts, and Operations (Details)

Navigate through expression

[][][][]

Move cursor to different level in expression, e.g. out of exponent

[]

Navigate through placeholders

[Tab]

View → Palettes or [Control]-click palette

Fraction $\frac{x}{y}$ , superscript  ${x}^{n}$, subscript ${x}_{n}$

x/y,  x^n,  x_ _n

Prime notation for derivatives, e.g.  $y''+y'=0$  for  $\frac{{d}^{2}y}{{\mathrm{dx}}^{2}}+\frac{\mathrm{dy}}{\mathrm{dx}}=0$ (Details)

y’’ + y’ = 0

Square root  $\sqrt{x}$,  nth root $\sqrt[n]{x}$ 

Symbol above, e.g. $\stackrel{\to }{x}$

x [Command][Shift]["] then insert symbol, e.g.  from Arrows palette

To enter literal characters (^, /, etc.), precede character with \ (backslash)

e.g. foo\^bar produces foo^bar

Greek letter entry mode (single letter)

[Command][Shift][G] letter

Special characters and symbols: Enter leading characters and [Esc]

 $\mathrm{π}$, $ⅇ$, $i$ pi, e, i $\infty$ infin

 $\alpha$, $\lambda$ alpha, lambda $\ge$, $\le$, $\ne$, $±$ geq, leq, ne, pm

Plotting and Animation (Plotting Guide)

 Plot an existing expression From the Context Panel, select Plot Builder Plot new expression Tools → Assistants → Plot Builder Add new expression to an existing plot Highlight and drag expression into plot Add annotations to plots Click the plot and select  on toolbar Animation and parameter plots for functions of several variables From the Context Panel, select Plot Builder and select the animation toggle

Mathematical Operations

 Common manipulations (simplify, factor, expand,…) Use the Context Panel Solve equations From the Context Panel for the equation → Solve Solve numerically (floating-point) From the Context Panel for the equation → Solve → Numerically Solve Solve ODE From the Context Panel for the DE expression → Solve DE Interactively Integrate, differentiate From the Context Panel for the expression → select Integrate or Differentiate Evaluate expression at a point From the Context Panel for the expression → Evaluate at a Point Create a matrix or vector Matrix palette → Choose → Insert Invert, transpose, solve matrix From the Context Panel for the matrix → Standard Operations → select Inverse, Transpose, ... Evaluate as floating-point From the Context Panel for the expression → Approximate Various operations and tasks Use Task Templates: Tools → Tasks → Browse

Important Maple Syntax (More)

 := Assignment a := 2;  b := 3 + x;  c := a + b; produces $5+x$ for c = Mathematical equation solve(2*x + a = 1,x);  produces  $x=\frac{1-a}{2}$ = Boolean equality if a = 0  then … Suppress display of output Terminate command with a colon, e.g. 1000! : [ ] List (ordered) z:=[c, b, a]; z[1]; produces c { } Set (unordered, no duplicates) {a, b, a, c}; produces {a, b, c} Display help on topic ?topic

Expressions vs Functions

 Operations Expression  ${x}^{2}+{y}^{2}$ Function (operator)  $g\left(x,y\right)={x}^{2}+{y}^{2}$     (details) Definition f := x^2 + y^2; g := (x,y) ->  x^2+y^2; Evaluate at $x=1$, $y=2$ eval(f, [x=1,y=2]); produces 5 g(1,2); produces 5 3-D plot for $x$ from 0 to 1, $y$ from 0 to 1 plot3d(f,x=0..1,y=0..1); plot3d(g(x,y),x=0..1,y=0..1); Conversion to other form f2 := unapply(f,x,y); f2(1,2); produces 5 g2 := g(x,1);   g2 + z; produces  ${x}^{2}+1+z$

Units and Tolerances

 Add units to value or expression Place cursor to right of quantity. Use the Units palette or from the Context Panel → Units → Affix Unit. Add arbitrary unit Use  from Units (SI) or Units (FPS) palette and enter desired unit. Simplify units in an expression From the Context Panel for the expression → Units → Simplify Convert units to a different system of units From the Context Panel for the expression → Units → Convert Enable automatic units simplification with(Units[Simple]); Enable tolerance calculations with(Tolerances); Tolerance quantity in 2-D Math 9 pm [Esc] 1.1 for 9 ± 1.1 Tolerance quantity in 1-D Math 9 &+- 1.1;  for 9 ± 1.1

Input and Output

 Interactive data import assistant Tools → Assistants → Import Data Import audio or image file (see ImportData) Tools → Assistants → Import Data Keep data files and more with your worksheet (see workbook for details) File → Save As → select Workbook for the file type.  Then Insert → Attach a File. Code generation (C, C#®, Fortran, Java™, JavaScript®, MATLAB®, Perl, Python®, R,Visual Basic®, and more) From the Context Panel for the expression → Language Conversions. (see CodeGeneration for help and details) Publish document in HTML, PDF, or LaTeX File → Export As → select HTML, PDF, or LaTeX Publish document in PDF File → Print → select Save as PDF from the drop-down menu

Select Interactive Tools and Utilities

 Show available task templates Tools → Tasks → Browse Plot Builder From the Context Panel, select Plot Builder, or Tools → Assistants → Plot Builder Unit Conversion utility Tools → Assistants → Units Converter Apply numeric formatting From the Context Panel for the expression → Format Output Share Maple documents using the MapleCloud™ Document Exchange MapleCloud toolbar menu Maple Portal Launch the Maple Portal from the Start page or the Help menu Manuals In the help system, browse to Manuals. Interactive education tutors for topics in Calculus, Precalculus, Linear Algebra, and more Tools → Tutors