MTH3007b Lecture 2
Me, in the lecture
zzzzz…
The beginning of this lecture started with a lot of recap of the last lecture and basic programming; like using integers for countable numbers and floats for non-countable numbers. Then, we quickly covered round-off errors - exactly what you’d assume, errors that occur due to rounding.
After finishing that off, we dived into actual numerical methods: higher order integration methods…
Runge-Kutta Methods
For each Euler method, their global error is and order is one. We can generalise these however, to get the Runge-Kutta methods:
Where is called the increment function, and the simplest case of this is - the forward Euler method.
The second order Runge-Kutta method, also called the Midpoint method, which evaluates a function at each midpoint between timesteps:
Alternatively, we can use a modified version of this evaluating two-thirds through the interval instead of halfway. This is called the Ralston method:
However, this is a bit easier to implement by breaking it into intermediate variables, namely and :
Pre-Lecture Notes from University Notes
- Recalling Euler method and applications.
- Discussing function value types: integers, floats, etc.
- Exploring round-off errors.
- Exploring higher order integration methods, like Runge-Kutta methods, midpoint method, and Ralston’s method.