This function applies the adaptive integration algorithm QAGS taking account of the user-supplied locations of singular points. The array pts of length npts should contain the endpoints of the integration ranges defined by the integration region and locations of the singularities. For example, to integrate over the region (a,b) with break-points at x_1, x_2, x_3 (where a < x_1 < x_2 < x_3 < b) the following pts array should be usedpts = a pts = x_1 pts = x_2 pts = x_3 pts = b
with npts = 5.
If you know the locations of the singular points in the integration region then this routine will be faster than