summaryrefslogtreecommitdiff
path: root/1535/CH4/EX4.1/Ch04Ex1.sci
blob: 8e19c16e8fc9deb77bb85cacfeece75f239c1a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Scilab Code Ex4.1 : Page-91 (2010)
D = 50;    // Distance between source and the screen, cm
lambda = 6563e-008;    // Wavelength of light of parallel rays, m
d = 0.385e-01;        // Width of the slit, cm
n = 1;    // Order of diffraction for first minimum
// As sin(theta1) = n*lambda/d = x1/D, solving for x1
x1 = n*lambda*D/d;    // Distance from the centre of the principal maximum to the first minimum, cm
printf("\nThe Distance from the centre of the principal maximum to the first minimum = %4.2f mm", x1/1e-001);
n = 5;    // Order of diffraction for fifth minimum
x2 = n*lambda*D/d;    // Distance from the centre of the principal maximum to the fifth minimum, cm
printf("\nThe Distance from the centre of the principal maximum to the fifth minimum = %4.2f mm", x2/1e-001);

// Result 
// The Distance from the centre of the principal maximum to the first minimum = 0.85 mm
// The Distance from the centre of the principal maximum to the fifth minimum = 4.26 mm