summaryrefslogtreecommitdiff
path: root/1949/CH1/EX1.1/1_1.sce
blob: e318e57c19836161d8fb8cce7249ac786a170460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Chapter-1,Example 1_1,Page 1-16
clc()

//Given Data:
i=45*%pi/180         //angle of incidence
u=1.33               //Refractive index of a soap film
lam=5.896*10^-7      //wavelength of required yellow light

//Calculations:
//u=sin i/sin r      //Snell's law   .So,
r=asin(sin(i)/u)     //angle of reflection

//Now, condition for bright fringe is
//2ut*cos r=(2n-1)lam/2
//Here n=1
t=lam/(2*2*u*cos(r))      //minimum thickness of film at which light will appear bright yellow
printf('Minimum thickness of film at which light will appear bright yellow of required wavelength is =%.10f m',t)