blob: 42527cc8c847b3c62ca265d05e90800ea08057cb (
plain)
1
2
3
4
5
6
7
|
clc
//to calculate wavelength
n=2 //order of spectrum
theta=%pi/6 //in radians
E=1/5000 //let (e+d)=E
lambda=E*sin(%pi/6)/n
disp("the wavelength of the spectral line is lambda="+string(lambda)+"cm")
|