Vibrations in an elastic beam with nonlinear supports at both ends