Abort only every fifth iteration because previous results are discarded every fifth iteration. Accordingly, use fewer points per iteration and a smaller increment.
Mention that N can be exceeded.
Abort if the eps_rel and eps_abs thresholds are met exactly; this happens with an integrand which is zero everywhere.
To be precise, the max_iterations parameter does not specify how many iterations are approximately executed because the number of points per iteration increases every fifth iteration.
To be precise, the
max_iterations
parameter does not specify how many iterations are approximately executed because the number of points per iteration increases every fifth iteration.