summaryrefslogtreecommitdiff
path: root/3769/CH18/EX18.3/Ex18_3.sce
blob: 0060cc81cfc553374d072f12cabf2f076dcccafb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Given
i1=48                         //Degree
A=60                          //Degree

//Calculation
//
r=A/2.0
u=sin(i1*3.14/180.0)/sin(r*3.14/180.0)

//Result
printf("\n Refractive index of the material is %0.2f  ",u)