Switzerland, Institut f ur Wissenschaftliches Rechnen ETH-Zentrum, 47 pages.
This is a tutorial on programming in Maple. The aim is to show how you can write simple programs in Maple for doing numerical calculations, linear algebra, and programs for simplifying or transforming symbolic expressions or mathematical formulae. It is assumed that the reader is familiar with using Maple interactively as a calculator.
Introduction Evaluation
Expressions: Sums, Products, Powers, Functions
Statements: Assignment, Conditional, Loops
Data StructuresSequences
Lists and Sets
Tables
Arrays
Records
Linked Lists
Maple ProceduresParameters, Local Variables, RETURN, ERROR
Tracing Procedure Execution: printlevel
Arrow Operators
Scope Rules: Parameters, Locals, Globals
Evaluation Rules: Actual and Formal Parameters, Locals, Globals
Recurrence Equations and Option Remember
Types and Map
Variable Number of Arguments: args and nargs
Returning Unevaluated
Simpli cations and Transformation Rules
Optional Arguments and Default Values
Returning Results Through Parameters
Programming in MapleMatrix and Vector Computation in Maple
Numerical Computation in Maple
Computing with Polynomials in Maple
Reading and Saving Procedures: read and save
Debugging Maple Programs
Interfacing with other Maple Facilities
Calling External Programs
File Input/Output of Numerical Data
Fortran and C output
Exercises