Hamilton equations of motion for simple pendulum