blob: 13e11a5e8c23036c183e2a51313c8977441e1c2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//to calculate minimum number of lines in a grating
lambda1=5890
//wavelengh in angstrom
lambda2=5896
dlambda=6 //smallest wavelength difference in angstrom
n=2 //order of spectrum
lambda=(lambda1+lambda2)/2 //average wavelength in angstrom
RP=lambda/dlambda //RP=resolving power
N=RP/n
disp("minimum number of lines in a grating is N="+string(N)+"unitless")
|