summaryrefslogtreecommitdiff
path: root/2399/CH2/EX2.8.7/Example2_8_7.sce
blob: e97f2ed497b5a6d327a5ff32574bc42791e820d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Example 2.8.7
clc;
clear;
NA=0.25;     //Numericla aperture
d=45d-6;        //Diameter of core
lamda=1.5d-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 normalized frequency is 23.55, deviation 0.05