summaryrefslogtreecommitdiff
path: root/3768/CH12/EX12.3/Ex12_3.sce
blob: fce20d66469cec22a70a134efb5ec74f12baa4b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example number 12.3, Page number 264

clc;clear;
close;

//Variable declaration
n1=1.55;          //Core refractive index
n2=1.50;          //Cladding refractive index
//Calculation
NA=sqrt(n1**2-n2**2);    //numerical aperture
//Result
printf("numerical aperture is %.2f",NA)