Text this: Numerical methods for the inverse dynamics simulation of underactuated mechanical systems