Effect of transverse shear and rotary inertia on the natural frequency of a uniform beam