blob: a906e196a8c7515a718670bd9cb6cfeae45b5ab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Chapter-2,Example2_4_4,pg 2-25
wavelength=6328*10^-10 //wavelength of light
m1=1 //for first order
m2=2 //for second order
N= 6000*10^2 //Number of lines per unit length
angle_1=asind(N*m1*wavelength)
angle_2=asind(N*m2*wavelength)
printf('\nangle of diaffraction for 1st order minima is ang1 = %.2f degrees',angle_1)
printf('\nangle of diaffraction for 2nd order minima is ang2 = %.2f degrees',angle_2)
|