Arbitrary reflection on complex material. Calculate the reflected amplitude coefficients and phase shifts for linearly polarized light at an arbitrary polarization azimuth angle, incident at an arbitrary angle on a material of arbitrary real or complex index of refraction. Two sets of results are given: ideal zero smoothness and rough surface, with impact calculated per the Kirchoff approximation.
In the inputs below:
(i) n1 and k1 are respectively the real and imaginary values of the index of refraction(incident material), (ii) n3 and k3 correspond to the transmitted material, (iii) theta_i is the incident angle measured from the normal, (iv)angular sweep range is the angular range, centered on theta_i, across which the program will perform angle calculations, (v) d is the rms surface height in nm (vi) lambda is the wavelength at which the impact of surface roughness is calculated, and (vii) num sweep points is the number of points that will be computed during the sweeping.
(For the example given below, the default values below will allow the user to locate the approximate Brewster angle for BK7 in the visible.)

n1:     k1:     n3:    k3:    theta_i: degrees    d : nm     lambda: nm
angular sweep range: degrees      num sweep points: (max 11)