Pendulum with Several Links

This Demonstration solves Lagrange's equations for pendulums attached in series with random initial angles and velocities , . For simplicity, the masses, lengths, and gravitational acceleration are set to 1.