summaryrefslogtreecommitdiff
path: root/273/CH14/EX14.5/ex14_5.sce
blob: d43d04411eb808b73823f3a3fd56b4f36713cf97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc;clear;
//Example 14.5
//calculation of no of cavity modes

//given values
c=3*10^8;//velocity of light in m/s
n=1.75;//refractive index
l=2*10^-2;//length of ruby rod in m
x=6943*10^-10;//wavelength in m
y=5.3*10^-10;//spread of wavelength in m

//calculation
d=c/n/l;
f=c*y/x^2;
m=f/d;
disp(m,'no of modes is');