summaryrefslogtreecommitdiff
path: root/2183/CH5/EX5.1/Ex_5_1.sce
blob: 9e969fe78545b018a0bc4966dbbc802ff125ab86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Example 5.1 //number of longitudinal modes and frequency spacing
clc;
clear;
close;
h=0.55*10^-6;//Wavelength in meter
n=1.78;//refractive index
L=4*10^-2;//Length in meter
C=3*10^8;//Speed of light in m/s
q=(2*n*L)/(h);//Number of logitudinal modes
df=((C)/(2*n*L))*10^-9;//frequency sepration in Gega Hertz
disp(q,"Number of longitudinal modes are ")
disp(df,"frequency spacing in Gega Hertz is ")