n> <span class="op">(</span> <span class="fl">1</span> <span class="op">-</span> <span class="va">X_0</span><span class="op">/</span><span class="va">K</span> <span class="op">)</span>;
    <span class="kw"><a href="https://rdrr.io/r/base/function.html" class="external-link">return</a></span><span class="op">(</span><span class="va">X_1</span><span class="op">)</span>;
<span class="op">}</span>
<span class="va">sim</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/gmse_apply.html">