span><span class="mf">300e-9</span><span class="p">,</span> <span class="mf">900e-9</span><span class="p">,</span> <span class="mi">100</span><span class="p">)</span>  <span class="c1"># 100 points from 300nm to 700nm</span>
<span class="n">frequencies</span> <span class="o">=</span> <span class="n">c</span> <span class="o">/</span> <span class="n">wavelengths</span>  <span class="c1"># Convert wavelengths to frequencies</span>

<span class="c1"># Interpolate n and k values for TiO2 over the specified frequ