Matrix Formulation of Foundations for Vibrating Machinery in Frequency Domain