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
- Lecture 1: Introduction
- Lecture 2: Discretisation, numerical differentiation. Theory quiz
- Lecture 3: Differentiation. Theory quiz
- Lecture 4: Root finding.
- Lecture 5: Root finding, numerical integration. Theory quiz
- Lecture 6: The Euler method, higher-order ODEs, stability
- Lecture 7: Stability, Runge-Kutta methods
- Lecture 8: Runge-Kutta methods, vectorisation, adaptive step size
- Lecture 10: Boundary value problems for ODEs.
- Lecture 11: Revision
Lab material
Week 1: Unix and MatLab
Week 2: Basic programming elements
Week 3: Control statements, scripts, commenting
Use derivs.m to evaluate discrete derivatives. Use error_driver.m to plot the errors in derivatives as function of step size.