Physics 410: Maple


Please report all errors/typos. etc to choptuik@physics.ubc.ca

Last updated September 22 2005

Lecture 1 (Sep 22 & 27)
  • Important: When working with xmaple (the GUI version of maple).
    1. Ensure that the Num Lock key is OFF. Otherwise certain control keys such as Ctrl-j, Ctrl-k etc. will not work as advertised in the GUI. (Num lock is typically usually located in the upper left hand corner of the keypad portion of a keyboard.)
    2. Save (Ctrl-s) your worksheet frequently to guard against software/hardware crashes. (This comment clearly applies to the use of any editing/composition software.)
  • Important: Please note the following difference betweens Maple V.4 (the documentation handed out in class) and Maple 8 (the version currently installed on the lnx machines).
    1. The percentage sign, %, replaces the double-quotes character, ", as the shorthand for "last result"; similarly, %% replaces "" for "next-to-last result".
    2. The double pipe symbol, ||, replaces the period/dot, ., as the concatenation operator.
  • Getting your own copy of Maple: Ron Parachoniak (Hennings 203) has a Maple 9 CD that you can borrow to install maple on your own machine. Be prepared to leave something of value (driver's license, credit card, cash etc.) as collateral to ensure prompt return of the CD.
  • Maple 8 window at initial startup. A Taylor series example. Sample invocation of maple from the command-line.
  • Worksheet (PS) showing calculations in Chapter 2 of Maple V Learning Guide by Heal et al.

Lecture 2 (Sep 27)
  • Some Useful Maple Commands: (PS)
  • Combined handout of various Maple source files covered below: (PS) The source code files per se (with the exception of polyinterp), are available in ~phys410/maple on the lnx machines.
  • Sample Maple source file example. Use the Maple read command to input such a source file.
  • Sample Maple procedure ladd which sums the elements of a list.
  • Maple source file tladd which tests ladd, and execution trace.

Lecture 3 (Sep 29)
  • Maple procedure polyinterp for computing Lagrange interpolating polynomial (PS)
  • polyinterp usage examples (PS)

Additional Material
  • Maple 7 Programming Guide (PDF).
  • Annotated maple source file pgmguide1 to accompany Chapter 1 of Maple V Programming Guide