uency (wavelength) range</span>
<span class="n">R_TE</span><span class="p">,</span> <span class="n">T_TE</span><span class="p">,</span> <span class="n">R_TM</span><span class="p">,</span> <span class="n">T_TM</span> <span class="o">=</span> <span class="n">stackrt0</span><span class="p">(</span><span class="n">n_stack</span><span class="p">,</span> <span class="n">d_stack</span><span class="p">,</span> <span class="n">frequencies</span><span class="p">)</span>

<span class="c1"># Calculate average R and T</