The motion of a triple pendulum is governed by a set of coupled ordinary differential equations. For certain energies its motion is chaotic.
This application solves these differential equations using the Runge-Kutta method for the time stepping.
You can influence the movement of the pendulum by holding your device in different positions.