summaryrefslogtreecommitdiff
path: root/3651/CH8/EX8.9/9.sce
blob: 63b255e22dc16ebf801924314676f4c90c6c2393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//variable declaration
N_a=0.3
gamma=45

//Calculations
theta_a=asin(N_a)
theta_as=asin((N_a)/cos(gamma))

//Results
printf('Acceptance angle, theta_a =%0.3f degrees\n',(theta_a*180/%pi))
printf('For skew rays,theta_as %0.3f degrees\n',(theta_as*180/%pi))
printf('//Answer given in the textbook is wrong')