The functions in line 9 and 10 are needed for the calculation of the static equilibrium and the numerical integration. The transition from symbolic to numeric calculations is done here with M(t, q) and h(t, q, ˙ q), although the expression M−1h is needed within the numerical integration (see Numerical Integration). This is because the symbolic inversion of M is an extensive operation and produces a very large symbolic expression.