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 /2780/CH2/EX2.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 '2780/CH2/EX2.20')
-rwxr-xr-x | 2780/CH2/EX2.20/Ex2_20.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2780/CH2/EX2.20/Ex2_20.sce b/2780/CH2/EX2.20/Ex2_20.sce new file mode 100755 index 000000000..4b13f89cc --- /dev/null +++ b/2780/CH2/EX2.20/Ex2_20.sce @@ -0,0 +1,12 @@ +clc
+//to calculate thickness of the film
+mu=1.33 //refractive index of soap film (unitless)
+i=45*%pi/180
+//the formula is mu=sini/sinr
+sinr=0.5317
+cosr=sqrt(1-(sinr)^2)
+//for destructive interference
+lambda=5890*10^-10 //wavelength in m
+n=1
+t=n*lambda/(2*mu*cosr)
+disp("the thickness of the film is t="+string(t)+"m")
|