summaryrefslogtreecommitdiff
path: root/3869/CH5/EX5.18/Ex5_18.sce
blob: 5035b49044d9e466648e971ba5b4bc0a24476818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//
//
//

//Variable declaration
n1=1.6          //Core refractive index
n2=1.4          //Cladding refractive index
n0=1.33         //water refractive index

//Calculation
NA=sqrt(n1**2-n2**2)/n0    //numerical aperture
theta0=asin(NA)*180/%pi          //acceptance angle(degrees)

//Result
printf("\n numerical aperture is %0.3f  ",NA)
printf("\n acceptance angle is %0.4f  degrees",theta0)