10.02.2013 Views

Diploma thesis

Diploma thesis

Diploma thesis

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.

10 pdc.m<br />

��phasematching function��<br />

Φsinc�opts����:�Φsinc�opts��Module��optΦsinc,optwglength�,<br />

optwglength�getOpt�wglength,opts,defaults�;<br />

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

iassert�optwglength Ε Reals�;<br />

optΦsinc :� Sinc�0.5 optwglength dk�opts��;<br />

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

iassert�optΦsinc Ε Reals�;<br />

Return�Simplify�replaceSiPrefixes�optΦsinc���;<br />

�<br />

��pump��<br />

Α�opts����:�Α�opts��Module��optΑ,optΛp, optΛpsigma,optΛpfwhm, optΛs,optΛi, optΩp, optΩpsigma,<br />

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

If�optΛpsigma �� "notSet" && optΩpsigma �� "notSet" && optΩpfwhm �� "notSet", optΛpsigma � optΛpfwhm<br />

If�optΛpsigma �� "notSet" && optΩpsigma �� "notSet" && optΛpfwhm �� "notSet", optΛpsigma � Λ�<br />

If�optΛpsigma �� "notSet" && optΛpfwhm �� "notSet" && optΩpfwhm �� "notSet", optΛpsigma � Λ�optΩpsigma<br />

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

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

optΑ:�Exp��1��optΛp��optΛs optΛi��optΛs�optΛi���^2��4�optΛpsigma�^2���;<br />

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

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

Return�Simplify�replaceSiPrefixes�optΑ���;<br />

�<br />

��joint spectral amplitude without phase��<br />

jointSpecAmplitude�opts����:�jointSpecAmplitude�opts��Module��optjointSpecAmplitude�,<br />

optjointSpecAmplitude:��Φgauss�opts� Α�opts��;<br />

iassert�optjointSpecAmplitude Ε Reals�;<br />

Return�Simplify�replaceSiPrefixes�optjointSpecAmplitude���;<br />

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

Saved successfully!

Ooh no, something went wrong!