Compact Numerical Quadrature Formulas for Singular and Hypersingular Integrals and Integral Equations