Lecture notes for MP354

Lecture and lab times

From Week 2, the lectures will be Thursday 9-10am, in the Computational Physics Lab, not in Hall C as originally announced.

The labs are either Thursday 14-16 or Tuesday 15-17 (note change of time). If you cannot make it to your usual lab session one week, try to attend the other one. If you cannot make it to either, please inform jonivar if you need help to catch up.

Lecture material

Lab material

Week 1: Unix and MatLab

material for the first lab

Week 2: Basic programming elements

material for the second lab

Week 3: Control statements, scripts, commenting

material for the second lab

Use derivs.m to evaluate discrete derivatives. Use error_driver.m to plot the errors in derivatives as function of step size.