ative, thus eliminating the
possibility of overflow or underflow in the leading term while
extracting the most arithmetic precision possible by pulling the
<code>max(a, b)</code> out of the log-exp round trip.</p>
<p>For example, the mixture of <span class="math inline">\(\mathsf{normal}(-1, 2)\)</span> with
<span class="math inline">\(\mathsf{normal}(3, 1)\)</span>, with mixing proportion <span class="math inline">\(\lambda = [0.3,0.7]^{\top}\)</span>, can be implemented in Stan as follows.</p>
<pre><code>