Title: Numerical Methods for the Inverse Dynamics Simulation of Underactuated Mechanical Systems