diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH4/EX4.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1535/CH4/EX4.1')
-rwxr-xr-x | 1535/CH4/EX4.1/Ch04Ex1.sci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1535/CH4/EX4.1/Ch04Ex1.sci b/1535/CH4/EX4.1/Ch04Ex1.sci new file mode 100755 index 000000000..8e19c16e8 --- /dev/null +++ b/1535/CH4/EX4.1/Ch04Ex1.sci @@ -0,0 +1,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
\ No newline at end of file |