Download Maple Programming Guide - Numerical Relativity Group at UBC

Transcript
Preface • xxiii
used with a variety of languages including C, C++, Java, Fortran, Visual Basic®, and
C#. For more information about OpenMaple, see OpenMaple (page 508).
• The Maple command-line interface is a console-based application that can be used for
batch processing Maple command files. For more information, see The Maple Commandline Interface (page 519).
• Maplet™ applications are custom interfaces that are created using the Maple programming
language. For more information, see Programming Interactive Elements (page 489).
For more information about the Maple user interfaces, refer to the Maple User Manual or
the versions help page.
Programming in the Standard Interface
Most of the time, you will enter Maple code directly in a worksheet or document. The
standard interface also provides other functionality for entering Maple code. For example,
you can enter your code in a startup code region if you want to run certain commands or
procedures automatically when a Maple document is opened. You can also enter your code
in a code edit region if you want to keep a set of Maple commands or procedures in a confined region within your document. For more information, refer to the worksheet,documenting,startupcode and CodeEditRegion help pages.
You can also include your code in an external text file to be read by a worksheet or document,
or batch processed. For more information, refer to the file help page.
Document Mode and Worksheet Mode
Two modes of interactive operation are available in the standard interface: document mode
and worksheet mode.
In document mode, you enter mathematical expressions within document blocks; no Maple
input prompt (>) or execution group boundaries are displayed in the document. You can
use this mode to create professional reports that combine text and typeset math with plots,
images, and other interactive components.
In worksheet mode, you enter mathematical expressions at input prompts, which are displayed
at the start of each input line in a Maple document. When you type an expression and press
Enter, the expression is evaluated and a new input prompt is displayed in the next line. In
both modes, the default format for entering mathematical text is 2-D math notation.
Both modes are equally suitable for creating and running programs in Maple. Select the
mode that suits your preferences and tasks. For more information about both modes, refer
to the worksheet,help,documentsvsworksheets help page.