/div>
<div id="leapfrog-integrator" class="section level3">
<h3>Leapfrog Integrator</h3>
<p>The last section leaves a two-state differential equation to solve.
Stan, like most other HMC implementations, uses the leapfrog
integrator, which is a numerical integration algorithm that’s
specifically adapted to provide stable results for Hamiltonian systems
of equations.</p>
<p>Like most numerical integrators, the leapfrog algorithm takes discrete
steps of some small time interval <span class="math inline">\(\e