summaryrefslogtreecommitdiff
path: root/3769/CH18/EX18.2/Ex18_2.sce
blob: 72ae7d8894118ab25ecc9068385b4d69c39e2a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear
//Given
a=51                                   //Degree
A=60                                   //Degree

//Calculation
//
b=(A+a)/2.0
c=A/2.0
u=(sin(b*3.14/180.0))/(sin(c*3.14/180.0))

//Result
printf("\n (i) The refracting angle of the prism is %0.3f  Degree", A)
printf("\n (ii) The refractive index of the material is %0.4f  ",u)