The
AccuracyGoal option can be used to change the default absolute tolerance:
The integration process stops once the accuracy goal criterion has been exceeded:
The result with the default settings is different since the default uses only a precision criterion:
Get the number of evaluation points used in a numerical integration:
Show the evaluation points used in a numerical integration:
Integration by excluding the curves on which the integrand's denominator is zero:
The curves on which the integrand is singular:
Stop integration after a specified number of points has been exceeded:
Without enough adaptive recursion, the following gives a poor result:
Specifying a larger value for
MaxRecursion gives a much better result:
Specifying the singularity locations is even more efficient:
Timing for the default multidimensional rule:
Using a higher-order multidimensional rule is faster:
NIntegrate may miss sharp peaks of integrands:
Increasing
MinRecursion forces a finer subdivision of the integration region:
The number of samples used to evaluate

for different relative tolerances:
The number of samples needed typically increases exponentially with the
PrecisionGoal:
NIntegrate can compute integrals using higher working precision: