ir</span><span class="p">,</span> <span class="n">d_Ag</span><span class="p">,</span> <span class="n">d_air</span><span class="p">])</span>  <span class="c1"># No frequency dependence on thickness</span>

<span class="c1"># Calculate R and T over the frequency (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">