1 2 3 4 5 6 7 8 9 10 11 12
clear //Given u1=1.50 u2=1.33 //Calculation // sinr=u1*sin(50*3.14/180.0)/u2 a=asin(sinr)*180/3.14 //Result printf("\n Angle of refraction is %0.1f degree",a)