Recursive computation of Lagrangian dynamics.