-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFresn_Refl0.m
More file actions
20 lines (19 loc) · 750 Bytes
/
Fresn_Refl0.m
File metadata and controls
20 lines (19 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% //************************************************************
function nvalue = Fresn_Refl0(eps)
% // calculates Fresnel reflectivity at normal incidence.
% var ss = Math.Complex(0.,0.);
% var one = Math.Complex(1.,0.);
one = complex(1.,0.);
ss = sqrt(eps);
nvalue = norm((one-ss)./(one+ss));
% nvalue = sqrt(abs((one-ss)./(one+ss)));
% return (one.sub(ss)).div(one.add(ss)).norm();
end
% //************************************************************
% function Fresn_Refl0(eps) {
% // calculates Fresnel reflectivity at normal incidence.
% var ss = Math.Complex(0.,0.);
% var one = Math.Complex(1.,0.);
% ss = eps.sqrt();
% return (one.sub(ss)).div(one.add(ss)).norm();
% }