# Lecture 4: Maple Programming

### Background Material

- C programming and lisp programming.
- Maple syntax review Lecture 3

### Reading

- Maple help on programming constructs and procedures.

### Topics

- Go over Assignment 1. See
sol1.mws for my solution and
an elaboration.
- Maple Programming lec4.mws.
- Elementary Programming
- Loops and conditionals.
- Sequences, lists, and sets.
- Arrays and tables.
- Convert function.

- Maple Operators
- Maple Procedures
- Functional Programming in Maple
- Number theory algorithms
- Modular Arithmetic
- Greatest Common Divisors and the Euclidean Algorithm
- Modular powers and fast exponentiation
- Extended Euclidean algorithm

- Advanced Maple Programming (time permitting)
- Procedures that return procedures
- Types
- Extending Maple

### Maple worksheets and programs

### Assignments

Created: Oct. 16, 2001 by
jjohnson@mcs.drexel.edu