summaryrefslogtreecommitdiff
path: root/1655/CH2/EX2.10.2/Example_2_10_2.sce
blob: 2dcb986466add2bb2e48797884790d2f82bdd386 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Example 2.10.2  page 2.40

clc;
clear;

a=50d-6;        //core radius
lamda=1500d-9;       //operating wavelength
n1=2.53;     //core refractive index
n2=1.5;     //cladding refractive index

delta=(n1-n2)/n1;       //computing delta
v= 2*3.14*a*n1*sqrt(2*delta)/lamda;      //computing normalized frequency
M=(v)^2/2;      //computing guided modes
printf("\nNormalized Frequency is %.1f\nTotal number of guided modes are %.d",v,M);
printf("\nNOTE - Calculation error in book. \n Normalized frequency is 477, it is calculated as 47.66");

//Calculation error in book. Normalized frequency is 477, it is calculated as 47.66, hence answers after that are erroneous.
//answers  in the book
//normalized frequency = 48.(incorrect)
//guided modes = 1152.(incorrect)