Dynamics of machinery