9 Basic Programming - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Manuals : User Manual : UserManual/Chapter09

Contents     Previous     Next     Index

9 Basic Programming

You have used Maple interactively in the previous chapters, sequentially performing operations such as executing a single command. Because Maple has a complete programming language, you can also use sophisticated programming constructs.

 

In Maple, you can write programs called procedures, and save them in modules. These modules can be used and distributed in the same way as Maple packages.

 

Important: It is strongly recommended that you use the Worksheet mode and 1-D Math input when programming or using programming commands. Hence, all input in this chapter is entered as 1-D Math.

9.1 In This Chapter

Section

Topics

Flow Control - Basic programming constructs

• 

Conditional Execution (if Statement)

• 

Repetition (for Statement)

Iterative Commands - Specialized, efficient iterative commands

• 

Creating a sequence

• 

Adding and Multiplying Expressions

• 

Selecting Expression Operands

• 

Mapping a Command over a Set or List

• 

Mapping a Binary Command over Two Lists or Vectors

Procedures - Maple programs

• 

Defining and Running Simple Procedures

• 

Procedures with Inputs

• 

Procedure Return Values

• 

Displaying Procedure Definitions

• 

Displaying Maple Library Procedure Definitions

• 

Modules

Programming in Documents - Display methods for Maple code

• 

Code Edit Region

• 

Startup Code

• 

Document Blocks

 

Contents     Previous     Next     Index


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam