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 /1871/CH4/EX4.9 | |
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 '1871/CH4/EX4.9')
-rwxr-xr-x | 1871/CH4/EX4.9/Ch04Ex9.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1871/CH4/EX4.9/Ch04Ex9.sce b/1871/CH4/EX4.9/Ch04Ex9.sce new file mode 100755 index 000000000..d29facdc2 --- /dev/null +++ b/1871/CH4/EX4.9/Ch04Ex9.sce @@ -0,0 +1,15 @@ +// Scilab code Ex4.9: Pg:147 (2008)
+clc;clear;
+D = 1000; // Distance between the source and the screen, mm
+omega = 1; // For simplicity assume fringe width to be unity, mm
+x9 = 9*omega; // Position of 9th bright fringe, mm
+x2_prime = 3/2*omega; // Position of 9th bright fringe, mm
+d = 0.5/2; // Separation between the slits, mm
+l = 8.835; // Distance between 9th bright fringe and second dark fringe
+// As x9 - x2_prime = 9*omega-3/2*omega = l, solving for omega
+omega = l/(x9 - x2_prime); // Fringe width, mm
+lambda = omega*2*d/D; // Wavelength of light used, mm
+printf("\nThe wavelength of light used = %4d angstrom", lambda/1e-007);
+
+// Result
+// The wavelength of light used = 5890 angstrom
|