calculates Brewster and critical angles
[thb,thc] = brewster(na,nb) (isotropic)
[thb,thcTE,thcTM] = brewster(na,nb) (birefringent)
refractive indices of left and right media
Brewster angle (in degrees)
critical angle of reflection or maximum angle of refraction
critical angle of reflection or maximum angle of refraction for TE and TM
brewster(na,nb) calculates Brewster and critical angles. In birefringent (uniaxial or biaxial) case, na,nb are turned into 3-d arrays and thcTE is critical or maxiumum depending on na(2)or nb(2) is larger whereas thcTM depends on na(3) or nb(3) is larger.
add sample pgm