10.02.2013 Views

Diploma thesis

Diploma thesis

Diploma thesis

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

opte � FindList�ToString�optpath�,"e�"�;<br />

opte � StringReplace�ToString�opte�,�"e�"��" 10^","e�"��" 10^�","e�" �� "", "�"�� "", "�"��""<br />

opte � ToExpression�opte�;<br />

��Print�"opte: ", opte�;��<br />

optf � FindList�ToString�optpath�,"f�"�;<br />

optf � StringReplace�ToString�optf�,�"e�"��" 10^","e�"��" 10^�","f�" �� "", "�"�� "", "�"��""<br />

optf � ToExpression�optf�;<br />

��Print�"optf: ", optf�;��<br />

optg � FindList�ToString�optpath�,"g�"�;<br />

optg � StringReplace�ToString�optg�,�"e�"��" 10^","e�"��" 10^�","g�" �� "", "�"�� "", "�"��""<br />

optg � ToExpression�optg�;<br />

��Print�"optg: ", optg�;��<br />

��calculation of n��<br />

optn :� Sqrt�opta � optb��optΛ^2�optc�� optd optΛ��optΛ^2 � opte�� optf �optΛ�optg��;<br />

iassert�optn��0�;<br />

iassert�optn�Reals�;<br />

Return�replaceSiPrefixes�optn��;<br />

�<br />

��refractive index of the e�polarized ray in ppln��<br />

nee�opts����:�nee�opts��Module��optn,optΛ,optΩ, optwgwidth, optwgheight, optdn, optairBoundary<br />

optstring, optdirectory, optpath, optcoefficient, optstringdn,optdnmantissa,optdnexponent<br />

opta, optb, optc, optd,opte,optf, optg�,<br />

optΛ�getOpt�Λ,opts,defaults�;<br />

optΩ�getOpt�Ω,opts,defaults�;<br />

iassert�Not��opt��"notSet"�&&�opt��"notSet"���;<br />

If�optΛ��"notSet",optΛ:�Λ�optΩ�,""�;<br />

optΛ � replaceSiPrefixes�optΛ��Micro Meter��;<br />

iassert�opt��0�;<br />

iassert�optΛ Ε Reals�;<br />

optwgwidth�getOpt�wgwidth,opts,defaults�;<br />

iassert�optwgwidth��0�;<br />

iassert�optwgwidth Ε Reals�;<br />

��Print�"optwgwidth: ",optwgwidth�;��<br />

optwgheight�getOpt�wgheight,opts,defaults�;<br />

iassert�optwgheight ��0�;<br />

iassert�optwgheight Ε Reals�;<br />

��Print�"optwgheight: ",optwgheight�;��<br />

optdn�getOpt�dn,opts,defaults�;<br />

iassert�optdn ��0�;<br />

iassert�optdn Ε Reals�;<br />

��Print�"optdn: ",optdn�;��<br />

optairBoundary�getOpt�airBoundary,opts,defaults�;<br />

iassert�optairBoundary �� "o" �� optairBoundary �� "e" ��optairBoundary �� ""�;<br />

��Print�"optairBoundary: ",optairBoundary�;��<br />

optmodesu�getOpt�modesu,opts,defaults�;<br />

iassert�optmodesu ��0�;<br />

iassert�optmodesu Ε Reals�;<br />

��Print�"optmodesu: ",optmodesu�;��<br />

optmodesv�getOpt�modesv,opts,defaults�;<br />

iassert�optmodesv ��0�;<br />

;<br />

enhancedSellmeier.m 3

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

Saved successfully!

Ooh no, something went wrong!