On the extensional and flexural vibrations of rotating bars