Titel This diagram was created with MATLAB. % Illustration of Snell's law function main() % indexes of refraction n1=1.0; n2=1.5; sign = -1;% is the...
snell = Table[ k = 2; DensityPlot[ Piecewise[{{Re[ E^(I {kx, ky}.{x, y}) E^(-I \[Phi])] /. {kx -> k Cos[-\[Pi]/4], ky -> k Sin[-\[Pi]/4]}, x < 0}, {Re[E^(I...
If your surface is not flat, Snell's law still apply locally, but the overall result can be a very complicated wavefront, that doesn't resemble the original...