A note on vibrations of generally restrained beams