summaryrefslogtreecommitdiff
path: root/1883/CH2/EX2.6.5/Example2_23.sce
blob: c72e3976c8b729cf9b6fb052dc9cbe4dcc4f8131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Chapter-2,Example2_6_5,pg 2-34

wavelength=5890*10^-10                                    //wavelength of light 

d_wavelength=6*10^-10

m=2                                                //for second order 

N=wavelength/(d_wavelength*m)

W=3                                              //width of grating

width=W/N

printf('\nNumber of lines is  N = %.0f \n',N)

printf('\n The grating element(width of line) is  a+b =%.7f cm',width)