1 2 3 4 5 6 7 8 9 10 11 12 13
clear //Given a=4 b=6.0 //Calculation // A=a/b B=atan(A)*180/3.14 ur=1/(sin(B*3.14/180.0)) //Result printf("\n Refrective index of the liquid is %0.1f ",ur)