summaryrefslogtreecommitdiff
path: root/1883/CH2/EX2.6.1/Example2_19.sce
blob: 0db6576008cacb4ecd9083d275abd540e8936e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Chapter-2,Example2_6_1,pg 2-31

wavelength_1=5893*10^-10                                   //wavelength of light

wavelength_2=5896*10^-10                                   //wavelength of light

m=2                                                //for second order 

N1=3000*10^2/0.5                                   //Number of lines per meter

angle_1=asind(m*wavelength_1*N1)                      //for wavelength_1

angle_2=asind(m*wavelength_2*N1)                       //for wavelength_2

angle_sep=angle_2-angle_1

printf('\nangular seperation is  %.4f degrees \n',angle_sep)

d_wavelength=3*10^-10

N=wavelength_1/(m*d_wavelength)

printf('\n The number of lines per meter is  N = %.0f\n ',N)