The behaviour of a pendulum