summaryrefslogtreecommitdiff
path: root/3755/CH13/EX13.1/Ex13_1.sce
blob: 78b1bdb85404f5b56b08fca85bcd4bc24219ed3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear
//
//
//

//Variable declaration    
n1=1.5;     //core refractive index
n2=1.48;    //cladding refractive index
n=1;

//Calculations
NA=sqrt(n1^2-n2^2);       //numerical aperture
i0=asin(NA/n);             //maximum entrance angle(radian)
i0=i0*180/%pi ;         //maximum entrance angle(degrees)

//Result
printf("\n numerical aperture is %0.5f ",NA)
printf("\n maximum entrance angle is %0.2f degrees",i0)