summaryrefslogtreecommitdiff
path: root/1883/CH1/EX1.2.1/Example1_24.sce
blob: 3702c56355db9c37017830ab09a6642ea1b81603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//Chapter-1,Example1_2_1,pg 1-11

i=45                                 //angle of incidence

u=1.2                                        //refractive index of soap film

t=4*10^-5                                    //thickness of soap film

r=asind(sind(i)/u)                             //by  Snell's law

//for dark band   '2*u*t*cos(r) = n*lam'

wavelength_1=(2*u*t*cosd(r)/1)*10^8                          //for n=1

wavelength_2=(2*u*t*cosd(r)/2)*10^8                          //for n=2

wavelength_3=(2*u*t*cosd(r)/3)*10^8                          //for n=3

//visible range of wavelengths is 4000 A.  to  7000 A.

printf('\n for n=1  wavelength = %.1f A.\n',wavelength_1)

printf('\n for n=2  wavelength = %.1f A.\n',wavelength_2)

printf('\n for n=3  wavelength = %.2f A.\n',wavelength_3)

printf('\n hence, none of the wavelengths from the visible region are absent in reflected light ')