The numerical evaluation of cauchy principal value integrals with non-standard weight functions