Example code for "Geometric Numerical Integration" by Hairer, Lubich, and Wanner.