function, and loop over this function with a vector of film thicknesses.</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">simulation &lt;-<span class="st"> </span>function(<span class="dt">thickness =</span> <span class="dv">50</span>) {
    results &lt;-<span class="st"> </span><span class="kw"><a href="../reference/recursive_fresnelcpp.html">recursive_fresnelcpp</a></span>(<span class="dt">epsilon =</span> <span class="kw">list</span>(<span class="fl">1.5</span>^<span class