B.1 Recursive Newton-Euler formulation