
An exact decay factor can hide an aliased heat input
Integrating homogeneous decay exactly still leaves a numerical choice for the input. Compare a frozen heater signal with its exact convolution. Time is in seconds and the normalised temperature is in kelvin.
Open editable notebook · Download .ipynb · Chapter 7 · Variation of constants and exponential steps

A constrained integrator can get the circle right and the clock wrong
A frictionless bead moves on an ideal circular guide. Its exact path, speed and angular phase can all be calculated by hand. Use this unusually informative reference to derive RATTLE's two constraint corrections and see which numerical errors would escape a camera that measured position alone.

How far does an energy-preserving rotation lag behind?
Integrate uniform circular motion by the implicit midpoint rule. The points stay exactly on the energy circle in exact arithmetic. Derive the angle advanced at each step and measure the accumulated timing error.
Open editable notebook · Download .ipynb · Dynamics and numerical time integration
Fundamentals / Numerical mathematics / Numerical ordinary differential equations
Numerical ordinary differential equations · Computational notebooks
Change an input, run the Python cells and compare the result with the derivation. You can also download each notebook for Jupyter.