 Some quadrature algorithms generate a sequence of results which should approach the correct value.Otherwise one can use a "null rule" which has the form of the above quadrature rule, but whose value would be zero for a simple integrand (for example, if the integrand were a polynomial of the appropriate degree).See