![]() |
||||||
|
| Script S1_2_8.m | |||
|
|||
|
%==============================================
%Prism 3 %============================================== % %the refractive index of the prism n=1.5; %the angle of equilateral triangle in radians alfa=60*pi/180; %the angle of incidence in radians beta=(pi/180)*30; %from refraction law arg1=sin(beta)/n; %the angle of refraction in radians betap=asin(arg1); %the angle of refraction in degrees betap_g=betap*180/pi %the angle of the incidence on the right surface in radians gammap=alfa-betap; %and in degrees gammap_g=gammap*180/pi %from refraction law arg2=n*sin(gammap); gamma=asin(arg2); %the angle of the ray emerging from the right surface in degrees gamma_g=gamma*180/pi %the deviation angle eps_g between the incident and emerging ray diff1=beta-betap; diff2=gamma-gammap; epsil=diff1+diff2; eps_g=epsil*180/pi |
|||
| Top | |||