blob: 6cc9f641dad479e696aeb62992e4d5514b0971bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clear
//
//
//
//Variable declaration
n1=1.563 //Core refractive index
n2=1.498 //Cladding refractive index
//Calculation
NA=sqrt(n1**2-n2**2) //numerical aperture
theta0=asin(NA) //acceptance angle(radian)
theta0=theta0*180/%pi //acceptance angle(degrees)
theta0m=60*(theta0-int(theta0)) //acceptance angle(minutes)
//Result
printf("\n numerical aperture is %0.3f ",NA)
printf("\n acceptance angle is %0.3f degrees %0.0f minutes",theta0,theta0m)
printf("\n answer for angle in minutes given in the book varies due to rounding off errors")
|