A.1 Recursive Newton-Euler formulation