A method for finding repeated roots in transcendental eigenvalue problems