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 /1847/CH3/EX3.20 | |
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 '1847/CH3/EX3.20')
-rwxr-xr-x | 1847/CH3/EX3.20/Ch03Ex20.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1847/CH3/EX3.20/Ch03Ex20.sce b/1847/CH3/EX3.20/Ch03Ex20.sce new file mode 100755 index 000000000..f8837de6e --- /dev/null +++ b/1847/CH3/EX3.20/Ch03Ex20.sce @@ -0,0 +1,17 @@ +// Scilab Code Ex3.20:: Page-3.32 (2009)
+clc; clear;
+f = 120; // Distance between screen and slit, cm
+a = 0.019; // Slit width, cm
+b = 0.041; // Distance between slits, cm
+lambda = 6500e-008; // Wavelength of light used, cm
+// As theta1 = x1/f = lambda/(2*(a+b)), solving for x1
+x1 = f*lambda/(2*(a+b)); // Position of first secondary minima, cm
+// As theta2 = x2/f = lambda/(a+b), solving for x2
+x2 = f*lambda/(a+b); // Position of first secondary maxima, cm
+
+printf("\nThe position of first secondary minima = %5.3f cm", x1);
+printf("\nThe position of first secondary maxima = %4.2f cm", x2);
+
+// Result
+// The position of first secondary minima = 0.065 cm
+// The position of first secondary maxima = 0.13 cm
|