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 /1949/CH1/EX1.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 '1949/CH1/EX1.9')
-rwxr-xr-x | 1949/CH1/EX1.9/1_9.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1949/CH1/EX1.9/1_9.sce b/1949/CH1/EX1.9/1_9.sce new file mode 100755 index 000000000..edc2ebb44 --- /dev/null +++ b/1949/CH1/EX1.9/1_9.sce @@ -0,0 +1,18 @@ +//Chapter-1,Example 1_9,Page 1-20
+clc()
+
+//Given Data:
+u1=1.3 //Refractive index of oil
+u2=1.5 //Refractive index of glass
+lam1=7*10^-7 //Wavelength of light
+lam2=5*10^-7 //Wavelength of light
+
+//Calculations:
+
+//for finding value of n, solve:
+//(2n+1)*lam1/2=(2(n+1)+1)*lam2/2
+//We get,n=2
+n=2
+
+toil=(2*n+1)*lam1/(2*u1*2) //thickness of oil layer
+printf('Thickness of oil layer is =%.9f m',toil)
|