User Guide

Tables ............................................................................................ 290
Matrices and Vectors ..................................................................... 291
Functional Operators ..................................................................... 292
Strings ........................................................................................... 297
7.3 Working with Maple Expressions ................................................ 298
Low-Level Operations ................................................................... 298
Manipulating Expressions ............................................................. 304
Evaluating Expressions ................................................................. 310
8 Basic Programming ............................................................................ 321
8.1 In This Chapter ............................................................................ 321
8.2 Flow Control ................................................................................ 322
Conditional Execution (if Statement) ........................................... 322
Repetition (for Statement) ............................................................. 325
8.3 Iterative Commands .................................................................... 333
Creating a Sequence ...................................................................... 333
Adding and Multiplying Expressions ........................................... 334
Selecting Expression Operands ..................................................... 335
Mapping a Command over a Set or List ....................................... 336
Mapping a Binary Command over Two Lists or Vectors ............... 336
Additional Information .................................................................. 337
8.4 Procedures ................................................................................... 338
Defining and Running Simple Procedures .................................... 338
Procedures with Inputs .................................................................. 339
Procedure Return Values ............................................................... 339
Displaying Procedure Definitions ................................................. 340
Displaying Maple Library Procedure Definitions ......................... 340
Modules ......................................................................................... 342
9 Maplets ................................................................................................ 343
9.1 In This Chapter ............................................................................ 343
9.2 Simple Maplet .............................................................................. 343
9.3 Using Maplets ............................................................................. 344
Maplet File .................................................................................... 344
Maple Document ............................................................................ 345
9.4 Authoring Maplets ...................................................................... 345
Maplet Builder .............................................................................. 346
Maplets Package ........................................................................... 355
viii Contents