From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2780/CH2/EX2.20/Ex2_20.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 2780/CH2/EX2.20/Ex2_20.sce (limited to '2780/CH2/EX2.20') 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") -- cgit