  </div>

        <div class="page-wrapper" 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/reference-manual/user-functions.html#function-definition-block">view current version</a>.
</div>
<div id="function-definition-block" class="section level2" number="9.1">
<h2><span class="header-section-number">9.1</span> Function-definition block</h2>
<p>User-defined functions appear in a