summaryrefslogtreecommitdiff
path: root/1871/CH4/EX4.21
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1871/CH4/EX4.21
downloadScilab-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.21')
-rwxr-xr-x1871/CH4/EX4.21/Ch04Ex21.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1871/CH4/EX4.21/Ch04Ex21.sce b/1871/CH4/EX4.21/Ch04Ex21.sce
new file mode 100755
index 000000000..963d017db
--- /dev/null
+++ b/1871/CH4/EX4.21/Ch04Ex21.sce
@@ -0,0 +1,12 @@
+// Scilab code Ex4.21 : Pg:159 (2008)
+clc;clear;
+D = 50; // The distance between the slits and the screen, cm
+d = 0.1/2; // Half the separation between two slits, cm
+mu = 1.58; // The refractive index of mica sheet
+x0 = 0.2; // The shift of interference pattern, cm
+// As x0 = D/(2*d)*(mu - 1)*t, solving for t
+t = 2*d*x0/(D*(mu-1)); // Thickness of mica sheet, cm
+printf("\nThe thickness of mica sheet = %3.1e cm", t);
+
+// Result
+// The thickness of mica sheet = 6.9e-004 cm \ No newline at end of file