A solution method for Euler–Bernoulli vibrating discontinuous beams