The Diamagnetic Pendulum