The Logarithmic Potential, Discontinuous Dirichlet And Neumann Problems