per" tabindex="-1" role="main">
          <div class="page-inner">

            <section class="normal" id="section-">

<div>
This is an old version, <a href="https://mc-stan.org/docs/stan-users-guide/algebraic-equations.html#coding-an-algebraic-system">view current version</a>.
</div>
<div id="coding-an-algebraic-system" class="section level2">
<h2><span class="header-section-number">12.2</span> Coding an Algebraic System</h2>
<p>A system of algebraic equations is coded directly in Stan as a
function with 