A method for the numerical solution of singular integral equations with a principal value integral