Triple pendulum

Watch also quadruple pendulum simulation. GitHub: Equations of motion are determined based on Lagrangian formula which summarizes dynamics of the entire system. Acceleration of each link can be computed by solving system of equations obtained from partial differential Lagrange's equations. Simple integration gives this nice effect.