summaryrefslogtreecommitdiff
path: root/2399/CH2/EX2.8.5/Example2_8_5.sce
blob: 3821a0b543aaf54bfbe8179f9e1c22dad844dc66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Example 2.8.5
clc;
clear;
NA=0.2;     //Numericla aperture
d=50d-6;        //Diameter of core
lamda=1d-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);
//answer in the book for guided modes is 247, deviation of 1.