summaryrefslogtreecommitdiff
path: root/3769/CH18/EX18.1/Ex18_1.sce
blob: 9f97969a82afcbd8e786385444edba4f3e748a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
//Given
A=60                            //Degree

//Calculation
//
a=sqrt(2)*sin(30*3.14/180.0)
b=asin(a)*180/3.14
c=(b*2)-A
i=(A+c)/2.0
r=A/2.0

//Result
printf("\n (i) Angle of minimum deviation is %0.0f  Degree",c)
printf("\n (ii) Angle of incidence is %0.0f  Degree",i)
printf("\n (iii) The angle of refraction is %0.3f  Degree", r)