Dynamics of a double pendulum with distributed mass