 This criterion can be difficult to satisfy if the integrands are badly behaved at only a few points, for example with a few step discontinuities.Alternatively, one could require only that the sum of the errors on each of the subintervals be less than the user's requirement.This would be "global" adaptive quadrature.