blob: 06ccff10462513a1b4ec24e623e05179e087ed2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Example number 12.6, Page number 265
clc;clear;
close;
//Variable declaration
n1=1.6; //Core refractive index
n0=1.33; //refractive index of air
n2=1.4; //Cladding refractive index
//Calculation
NA=sqrt(n1**2-n2**2)/n0; //numerical aperture
theta0=asin(NA); //acceptance angle(radian)
theta0=theta0*180/%pi; //acceptance angle(degrees)
//Resul"
printf("acceptance angle is %.2f degree",theta0)
//answer in the book varies due to rounding off errors
|