summaryrefslogtreecommitdiff
path: root/2399/CH2/EX2.8.8/Example2_8_8.sce
blob: 066744d75caf5eafa454bf062c73cddf9f2fe1d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Example 2.8.8
clc;
clear;
NA=0.25;     //Numericla aperture
d=45d-6;        //Diameter of core
lamda=1.2d-6;      //Wavelength
a=d/2;      //computing radius
v=2*3.14*a*NA/lamda;    //computing normalized frequency
Mg=v^2/4;       //computing mode volume for parabollic profile
Mg=round(Mg);
printf("\nNormalized Frequency is %.1f.\nTotal number of guided modes are %.d.",v,Mg);
printf("\n\nNOTE - In the question NA is given 0.22. However while solving it is taken as 0.25");
// answer in the book for number of guided modes is given as 216, deviation of 1.

printf("\nHence solving for NA = 0.22 also,");
printf("\n\nWhen NA=0.22");
NA=0.22;     //Numericla aperture
d=45d-6;        //Diameter of core
lamda=1.2d-6;      //Wavelength
a=d/2;      //computing radius
v=2*3.14*a*NA/lamda;    //computing normalized frequency
Mg=v^2/4;       //computing mode volume for parabollic profile
Mg=round(Mg);
printf("\nNormalized Frequency is %.1f.\nTotal number of guided modes are %.d.",v,Mg);