I am pleased to announce another minor package of mine that should hit the general registry in a couple of days:
FresnelEquations.jl
After having implemented the rather long and tedious Fresnel equations several times, I found it in order to wrap it up into a package. FresnelEquations.jl defines 8 functions, seen in the overview below:
Function | Description | Physical meaning |
---|---|---|
R_s and R_p
|
Reflectance | Fraction of energy reflected |
T_s and T_p
|
Transmittance | Fraction of energy transmitted |
r_s and r_p
|
Reflection coefficient | Change in amplitude of E-field upon reflection |
t_s and t_p
|
Transmission coefficient | Change in amplitude of E-field upon transmission |
The package content is largely taken from the wikipedia article on the Fresnel Equations.
The main concern of this package is correctness and performance, so if you see any room fore improvement, please open up an issue! Notes on API improvements are of course also welcome.