 If the <span class="math inline">\(n\)</span>th estimate of the integral is denoted <span class="math inline">\(I_n\)</span> and the <span class="math inline">\(n\)</span>th estimate of the norm of the integral is denoted <span class="math inline">\(|I|_n\)</span>, the iteration is terminated when</p>
<p><span class="math display">\[
  \frac{{|I_{n + 1} - I_n|}}{{|I|_{n + 1}}} &lt; \text{relative tolerance}.
\]</span></p>
<p>The <code>relative_tolerance</code> parameter can be optionally specified as the l