Assignments on chapter 2 "Charged particle orbits in magnetic and electric fields" are now available on the e-learning webpage.
One of the assignments of chapter 2 requires you to numerically
integrate the orbit of a charged particle in a mirror machine. A simple
orbit integrator has been uploaded to the Assignment section. The code
is written in C++ and is easily compiled on a Linux machine.
Instructions are in the README file. In order to solve this assignment,
you must modify the fields.cpp file, where the relevant electric and
magnetic fields are specified. The code must be recompiled for changes
to be effective.