Windows is a registered trademark of Microsoft Corporation.
Java and all Java based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United
States and other countries. Maplesoft is independent of Sun Microsystems, Inc.
All other trademarks are the property of their respective owners.
This document was produced using a special version of Maple and DocBook.
Printed in Canada
ISBN 1-894511-75-1
Contents
Preface .................................................................................................... xiii
The MapleTM software is a powerful system that you can use to solve comple x
mathematical problems. You can also create professional quality documents,
presentations, and custom interactive computational tools in the Maple environment.
You can access the power of the Maple computational engine through a
variety of interfaces.
Full-featured graphical user interface offering features
that help you create electronic documents that show all
your assumptions, the calculations, and any margin of
error in your results; or hide the computations to allow
your reader to focus on the problem setup and final results. The advanced formatting features help you create
the customized document you need. Because the documents are live, you can edit the parameters and, with the
click of a button, compute the new results.
The User Manual was created using the Standard
W orksheet interf ace to Maple. An interacti v e version of
this manual is available in the Standard W orksheet interface. From the Help menu, select Manuals, Dictionary,and more>Manuals>User Manual.
Basic worksheet environment for older computers with
limited memory.
Command-line interface, without graphical user interfaces features, for solving very large complex problems
or batch processing with scripts.
Graphical calculator interface to the Maple computational
engine. Using it, you can perform simple computations
and create customizable, zoomable graphs.
xiii
xiv • Preface
DescriptionInterface
MapletTMApplications
Graphical user interface containing windows, textbox
regions, and other visual interfaces, which gives you
point-and-click access to the power of Maple. You can
perform calculations and plot functions without using
the worksheet or command-line interfaces.
This manual describes how to use the Standard Worksheet interface. Some
features are not available in the Classic Worksheet interface and Commandline version. The Standard Worksheet interface has two modes: Document
mode and Worksheet mode.
Document Mode - Using the Document mode, you can perform quick calculations. You can enter a mathematical expression, and then evaluate, manipulate, solve, or plot with a few keystrokes or mouse clicks.
Worksheet Mode - The Worksheet mode is designed for:
•Interactive use through Maple commands, which may offer advanced
functionality or customized control not available using context menus
or other syntax-free methods
•Programmatic use of the powerful Maple language
Using either mode, you can create high quality interactive mathematical
presentations or documents.
In This Manual
This manual provides an overview of all Maple features including:
•Performing computations
•Creating plots and animations
•Creating interactive documents
•The Maple programming language
•Using and creating custom Maplet applications
Preface • xv
•File input and output, and using Maple with third party products
•Data structures
For a complete list of manuals, study guides, toolboxes, and other resources,
visit the Maplesoft Web site at http://www.maplesoft.com.
Audience
The information in this manual is intended for Maple users who have read
the Maple Getting Started Guide.
Conventions
This manual uses the following typographical conventions.
•bold font - Maple command, package name, option name, dialog, menu,
and text field
•italics - new or important concept
•Note - additional information relevant to the section
•Important - information that must be read and followed
Customer Feedback
Maplesoft welcomes your feedback. For suggestions and comments related
to this and other manuals, contact doc@maplesoft.com
xvi • Preface
1 Document Mode
Using the Maple software, you can create powerful interactive documents.
You can visualize and animate problems in two and three dimensions. You
can solve complex problems with simple point-and-click interfaces or easyto-modify interactive documents. Y ou can also de vise custom solutions using
the Maple programming language. While you work, you can document your
process, providing text descriptions.
1.1 Introduction
Maple has two modes: Document mode and Worksheet mode.
Using Document mode, you can quickly perform calculations. You can enter
a mathematical expression, and then evaluate, manipulate, solve, or plot it
with a few keystrokes or mouse clicks. This chapter provides an overview
of Document mode.
Document mode sample:
Find the value of the derivative of at .
Integrate over the interval .
=
Worksheet mode is designed for interactive use through commands and
programming using the Maple language. The Worksheet mode supports the
features available in Document mode described in this chapter . After revie w-
1
2 • 1 Document Mode
ing the information in this chapter, see Chapter 2, Worksheet Mode (page 35),
for information on using Worksheet mode.
Worksheet mode sample:
Find the value of the derivative of at .
>
(1.1)
>
(1.2)
>
Integrate over the interval .
>
Important: In every Maple document, you can use Document mode and
Worksheet mode.
Using either mode:
1.2 In This Chapter • 3
•You have access to the full mathematical engine.
•You can create high quality interactive documents: easy-to-use computational tools, presentations, or publications.
Interactive document features include:
•Embedded graphical interface components, like buttons, sliders, and
check boxes
•Automatic execution of marked regions when a file is opened
•Tables
•Character and paragraph formatting styles
•Hyperlinks
These features are described in Chapter 6, Creating Mathematical Docu-ments (page 231).
Note: This chapter was created using Document mode. All other chapters
were created using Worksheet mode.
1.2 In This Chapter
TopicsSection
Simple Mathematical Expressions - Introduction to Math and Text modes, and how to
easily enter simple expressions
•Text and Math Modes
•Rational Expressions
•Powers
•Products
•Shortcuts for Entering Mathematical Ex-
•Other Expressions
pressions
4 • 1 Document Mode
TopicsSection
Evaluating Expressions - How to evaluate
expressions
Editing Expressions and Regenerating Output
- How to update expressions and results
Entering Expressions - Overview of tools for
creating complex mathematical expressions
Performing Computations - Overview of
tools for computing and plotting
key Document mode features
in the Maple Help System
•Displaying the Value Inline
•Displaying the Value on the Following
Line
•Updating a Single Computation
•Updating a Group of Computations
•Updating All Computations in a Document
•Palettes
•Symbol Names
•Computing with Palettes
•Context Menus
•Assistants and Tutors
•Table of Document Mode ToolsDocument Mode Summary - Summary of
•Table of Maple Help ResourcesGetting Help - A list of resources available
1.3 Simple Mathematical Expressions
In Document mode, you can enter two types of content: Text and Math. TheText mode and Math mode icons at the left end of the toolbar indicate the
current mode. The toolbar is located near the top of the Maple window, immediately below the menu bar.
To switch between Text and Math modes, press the F5 key. (Alternatively,
click the Text mode or Math mode toolbar icon.) Consequently, it is easy
to enter sentences containing text and inline mathematical expressions.
1.3 Simple Mathematical Expressions • 5
Entering mathematical expressions, such as , , and , is
natural in Math mode.
Rational Expressions (Fractions)
To enter a fraction:
1. Enter the numerator.
2. Press the forward slash (/) key.
3. Enter the denominator.
4. To exit the denominator, press the right arrow key.
Powers
To enter a power:
1. Enter the base.
2. Press the caret (^) key (Shift + 6).
3. Enter the exponent, which displays in math as a superscript.
4. To exit the exponent, press the right arrow key.
Products
To enter a product:
1. Enter the first factor.
2. Press the asterisk (*) key, which displays in math as .
3. Enter the second factor.
6 • 1 Document Mode
Implied Multiplication
In most cases, you do not need to include the multiplication operator, .
Insert a space character between two quantities to multiply them.
Note: In some cases, you do not need to enter the multiplication operator or
a space character. For example, Maple interprets a number followed by a
variable as multiplication.
Shortcuts for Entering Mathematical Expressions
T able 1.1 lists shortcut keys for entering and na vigating mathematical expressions.
Table 1.1: Shortcuts for Entering Mathematical Expressions
Math and Text
modes
Overscript
Square root
KeySymbol/Format
F5Switch between
/ (forward slash)Fraction
^ (caret)Exponent
_ (underscore)Subscript
•Ctrl + Shift + ", Windows and
UNIX®
•Command + Shift + ", Macin-
tosh®
Enter sqrt , and then press the command/symbol completion shortcut. (See
the following row in this table.)
Automatically Generated in
Document
Example using fraction:
(Math) versus 1/4 (Text)
1.3 Simple Mathematical Expressions • 7
Automatically Generated in
Document
Command/symbol
completion
pression
KeySymbol/Format
•Ctrl + Space, Windows
•Command + Shift + Space,
Macintosh
•Ctrl + Shift + Space, UNIX
Arrow keysNavigating an ex-
For a complete list of shortcut keys, refer to the Math Shortcut and Hints
help page. To access this help page in the Maple software, in Math mode
enter ?MathShortcuts and then press Enter. For information on the Maple
Help System, see Getting Help (page 32).
Other Expressions
It is also easy to enter mathematical expressions, such as:
•Piecewise-continuous functions:
•Limits:
•Continued fractions:
and more complex expressions. For information, see Entering Expres-sions (page 10).
8 • 1 Document Mode
1.4 Evaluating Expressions
To evaluate a mathematical expression, place the cursor in the expression
and press Ctrl + = (Command + =, for Macintosh). That is, pr ess and hold
the Ctrl (or Command) key, and then press the equal sign (=) key.
T o the right of the expression, Maple inserts an equal sign and then the v alue
of the expression.
=
You can replace the inserted equal sign with text or mathematical content.
To replace the equal sign:
1. Select the equal sign. Press Delete.
2. Enter the replacement text or mathematical content.
For example, you can replace the equal sign with the text "is equal to".
is equal to
In mathematical content, pressing Enterevaluates the e xpression and displays
it centered on the following line. The cursor moves to a new line below the
output.
By default, Maple labels output that is generated by pressing Enter. For information on equation labels, see Equation Labels (page 59). In this manual,
labels are generally not displayed.
1.5 Editing Expressions and Updating Output • 9
In text, pressing Enter inserts a line break.
You can use the basic algebraic operators, such as and , with most
expressions, including polynomials—see P olynomial Algebr a (page 126)—and
matrices and vectors—see Linear Algebra (page 135).
=
=
1.5 Editing Expressions and Updating Output
One important feature of Maple is that your documents are live. That is, you
can edit expressions and quickly recalculate results.
To update one computation:
1. Edit the expression.
2. Press Ctrl + = (Command + =, for Macintosh) or Enter.
The result is updated.
To update a group of computations:
1. Edit the expressions.
2. Select all edited expressions and the results to recalculate.
3. Click the Execute toolbar icon .
All selected results are updated.
To update all output in a Maple document:
10 • 1 Document Mode
•Click the Execute All toolbar icon .
All results in the document are updated.
1.6 Entering Expressions
Mathematical expressions can contain the following symbols.
•Data structures: sets, lists, Arrays, Vectors, Matrices, ...
Maple contains over a thousand symbols. For some numbers, operators, and
names, you can press the corresponding key , for e xample, 9, =, >, or x. Most
symbols are not available on the keyboard, but you can insert them easily
using two methods.
To insert a symbol, you can use:
•Palettes
•Symbol names
Palettes
Palettes are collections of related items that you can insert by clicking or
dragging. Palettes contain:
•Numbers and constants, like i (the imaginary unit), π, and ∞. For example,
see the Common Symbols palette (Figure 1.1).
1.6 Entering Expressions • 11
•Layouts, like an item with a superscript and subscript. For example, see
the Layout palette (Figure 1.2).
•Mathematical operations, like a definite integral with placeholders for
the integrand, variable of integration, and endpoints of the interval of
integration. For example, see the Expression palette (Figure 1.3).
•Specialized tools. For example, see the Matrix palette (Figure 1.4). For
information on the Matrix palette, see Creating Matrices (page 135).
Figure 1.2: Layout PaletteFigure 1.1: Common Symbols Palette