Working in Worksheet Mode
|
Worksheet mode allows you to quickly perform computations, while having access to the input palettes, context menus, and text input functions such as document blocks. In worksheet mode:
|
•
|
The input prompt is displayed.
|
•
|
Math input can be entered as standard 2-D math or Maple Input (1-D math). See 2-D Math.
|
•
|
Command completion is supported.
|
•
|
You can insert images, plots, tables, sketches, and other objects.
|
|
Starting in Worksheet Mode
|
|
|
By default, Maple opens in Document mode.
|
|
To open a new file in Worksheet mode:
|
•
|
From the File menu, select New, and then Worksheet Mode.
|
|
To change the default to always open new files in Worksheet mode:
|
1.
|
From the Tools, select Options.
|
2.
|
Within the Interface tab, set the default format for new worksheets to Worksheet.
|
3.
|
Click Apply to Session, Apply Globally, or Cancel.
|
|
|
Saving Worksheets
|
|
|
Maple Worksheets are saved as .mw files. When you open a file that is a Maple worksheet, Maple opens automatically in Worksheet mode.
|
|
|
Creating Worksheets within a Maple Workbook
|
|
|
To create a new workbook worksheet:
|
1.
|
In the Workbook tab, right-click anywhere inside the Navigator palette.
|
2.
|
From the context menu, select New, then select Worksheet in Workbook.
|
•
|
From the File menu, select New > Worksheet in Workbook
|
|
|
Creating Document Blocks in Worksheets
|
|
|
Maple Documents are a series of Document Blocks, but Worksheets can also contain document blocks, along with Maple code. To create a document block, from the Edit > Document Blocks menu select Create Document Block.
|
|
You can collapse and expand document blocks to hide or view the underlying code.
|
|
To hide the code behind a Document:
|
1.
|
As a visual aid, ensure that the Markers feature is activated. From the View menu, select Markers. Document block markers are displayed in the left sidebar.
|
2.
|
Insert the cursor in a document block to be expanded.
|
3.
|
From the Edit menu, select Document Blocks.
|
4.
|
Clear the check box by Show Command.
|
5.
|
To view the code again, select Show Command.
|
|
|
Execution Groups
|
|
|
You can insert a new command prompt from the Insert menu. You can choose to insert an execution group before or after the cursor. See Insert Execution Group for details.
|
|
|
Executing 2-D Math in Worksheet Mode
|
|
|
You execute 2-D math in Worksheet mode by using either of the following methods:
|
•
|
Press Enter. This evaluates and displays results on the next line.
|
•
|
Use the Evaluate menu item Execute Selection.
|
|
Command Completion
|
|
1.
|
Begin entering a command in the worksheet.
|
2.
|
To list all Maple packages, commands, functions, and symbols (2-D math mode) that match the entered text, from the Tools menu select Complete Command, or use the short cut key:
|
|
Esc, Mac, Windows, and Linux
|
|
Ctrl + Shift + Space, Linux
|
|
|
|
|
|
|
|