23.05.2014 Views

William Angerer - Department of Physics and Astronomy - University ...

William Angerer - Department of Physics and Astronomy - University ...

William Angerer - Department of Physics and Astronomy - University ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix F<br />

Code for Fitting Index <strong>of</strong> Refraction to Transmission Data<br />

The following is a listing <strong>of</strong> the code used to extract the index <strong>of</strong> refraction <strong>of</strong> Ga~<br />

from the transmission data through GaN / Ah03 . This prograrr. is a variation <strong>of</strong><br />

the amoeba. c simplex optimization program found in Numerical Recipes in C [120j.<br />

The program performs a least squares fit <strong>of</strong> the transmission data to the calculated<br />

transmission <strong>of</strong> <strong>of</strong> light through GaN /A1 2 0 3 (see section -1.2.2). I have used a variation<br />

<strong>of</strong> this program for all <strong>of</strong> the curve fitting <strong>and</strong> analysis in this thesis. I have found<br />

this routine to be very robust <strong>and</strong> have not had any problems with convergence to<br />

local minimum. as opposed to global minimum. I have verified this by changing the<br />

starting point <strong>of</strong> the fit <strong>and</strong> observing convergence to the same fitting value.<br />

The code is compiled as<br />

g++ fit_n.cpp ranO.c nrutil.c -1m -0 fit_n<br />

<strong>and</strong> the code is execut0d as<br />

unix_prompt> fit_n <br />

227<br />

Reproduced with permission <strong>of</strong> the copyright owner. Further reproduction prohibited without permission.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!