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.27 | |
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.27')
-rwxr-xr-x | 1871/CH4/EX4.27/Ch04Ex27.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1871/CH4/EX4.27/Ch04Ex27.sce b/1871/CH4/EX4.27/Ch04Ex27.sce new file mode 100755 index 000000000..b7125f39a --- /dev/null +++ b/1871/CH4/EX4.27/Ch04Ex27.sce @@ -0,0 +1,13 @@ +// Scilab code Ex4.27 : Pg:167 (2008)
+clc;clear;
+lambda = 5890e-008; // Wavelength of light, cm
+mu = 1.5; // Refractive index of oil
+i = 30; // Angle of incidence, degree
+n = 8; // Order of dark band
+sin_r = sind(i)/mu; // Sine of angle of reflection from Snell's Law, degree
+cos_r = sqrt(1-sin_r^2); // Cosine of angle of reflection from the trigonometric identity, degree
+t = n*lambda/(2*mu*cos_r); // The thickness of the oil film, cm
+printf("\nThe thickness of the oil film = %5.3e cm", t);
+
+// Result
+// The thickness of the oil film = 1.666e-004 cm
\ No newline at end of file |