summaryrefslogtreecommitdiff
path: root/2780/CH5/EX5.3/Ex5_3.sce
blob: 1496c046a6c2010925371a0a6af0562fd23a6eca (plain)
1
2
3
4
5
6
7
8
9
10
clc
//to calculate number of oscillations corresponding to the coherence length
L=2.945*10^-2 //coherence length in m
lambda=5890*10^-10 //wavelength of sodium light in m
n=L/lambda
disp("the number of oscillations is n="+string(n)+"unitless")
//to calculate coherence time
c=3*10^8 //light speed in m
Time=L/c //coherence time
disp("the coherence Time="+string(Time)+"s")