blob: 17b02b9c8a1687e14fa0fa8f191e0623490b691e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clear
//
//
//
//Variable declaration
NA=0.3 //numerical aperture
gama=45*%pi/180 //angle(radian)
//Calculation
thetaa1=asin(NA) //acceptance angle for meridional rays(radian)
thetaa1=thetaa1*180/%pi //acceptance angle for meridional rays(degrees)
thetaa2=asin(NA/cos(gama))*180/%pi //acceptance angle for skew rays(degrees)
//Result
printf("\n acceptance angle for meridional rays is %0.2f degrees",thetaa1)
printf("\n acceptance angle for skew rays is %0.3f degrees",thetaa2)
printf("\n answer for acceptance angle for skew rays given in the textbook varies due to rounding off errors")
|