summaryrefslogtreecommitdiff
path: root/1655/CH2/EX2.7.1/Example_2_7_1.sce
blob: 0fdba20f4c65e0d5a1d7a000ce5461f87459ba92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Example 2.7.1  page 2.23

clc;
clear;

core_diameter=78d-6;        //core diameter
delta=1.4/100;      //relative index difference
lamda=0.8d-6;       //operating wavelength
n1=1.47;     //core refractive index

a=core_diameter/2;      //computing core radius
v= 2*3.14*a*n1*sqrt(2*delta)/lamda;      //computing normalized frequency
M=(v)^2/2;      //computing guided modes

printf("\nNormalized Frequency is %.3f.\nTotal number of guided modes are %.1f",v,M);
printf("\nNOTE - Calculation error, answer in the book for normalized frequency is given as 75.156 which should be 75.306.");

//answer in the book for normalized frequency is given as 75.156(incorrect) and for Guided modes is 5648.5(incorrect)