Chapter 5: Wave Optics

Example 5.1, Page 142

In [1]:
#Variable Declaration
refractive_index=1.65 #refractive index
lamda=5893*1e-10;#wavelength
n=400;

#Calculation
t=(n*lamda)/(2*(refractive_index-1));#Thickness of film

#Result		
print 'Thickness of film = ',round(t/1e-4,2),'*10^-4 m'
Thickness of film =  1.81 *10^-4 m

Example 5.2, Page 142

In [2]:
#Variable Declaration
x=0.40*1e-3; #in meter
n=900;

#Calculations
lamda=2*x/n;#Wavelength of light in meters
lamda1=lamda/1e-10;#Wavelength of light in A

#Result		
print 'Wavelength of light in A =',round(lamda1),'A'
Wavelength of light in A = 8889.0 A

Example 5.3, Page 143

In [3]:
#Variable Declaration
lamda=5893*1e-10;#wavelength of monocromatic light
n=4000;

#Calculation
x=n*lamda/2;#distance moved by mirror M1

#Result
print 'distance moved by mirror M1 =',x/1e-2,'*10^-2 m'
distance moved by mirror M1 = 0.11786 *10^-2 m

Example 5.4, Page 143

In [4]:
#Variable Declaration
lamda=5461*1e-10;#wavelength of light
n=8;#no of frings
t=6*1e-6;#in meter

#calculation
u=((n*lamda)/(2*t))+1;#refractive index of material

#Result
print 'refractive index of material =',round(u,5)
refractive index of material = 1.36407

Example 5.5, Page 154

In [6]:
#Variable Declaration
ue=1.553;#given ue
u0=1.544;#given uo
lamda=500*1e-9;#in meter

#Calculation
t=lamda/(4*(ue-u0));#The thickness of quarter wave plate

#Result
print 'The thickness of quarter wave plate =',round(t/1e-5,3),'*10^-5 m'
The thickness of quarter wave plate = 1.389 *10^-5 m

Example 5.6, Page 155

In [7]:
#Variable Declaration
lamda=5893*1e-10;#in meter
ue=1.55333;#given ue
u0=1.5442;#given u0

#Calculation
t=lamda/(2*(ue-u0));#Thicknesss of half wave plate

#Result
print 'Thicknesss of half wave plate =',round(t/1e-5,2),'*10^-5 m'
Thicknesss of half wave plate = 3.23 *10^-5 m

Example 5.7, Page 155

In [27]:
#Variable Declaration
u0=1.5442;#given u0
ue=1.5533;#given ue
lamda=5*1e-5;#wavelrngth in cm

#Calculation
t=lamda/(2*(ue-u0));#Thicknesss of half wave plate

#Result
print 'Thicknesss of half wave plate =',round(t/1e-3,2),'*10^-3 cm'
#Incorrect answer in the textbook
Thicknesss of half wave plate = 2.75 *10^-3 cm

Example 5.8, Page 155

In [8]:
#Variable Declaration
u0=1.658;#given u0
ue=1.486;#given ue
lamda=5893*1e-8 #in cm

#Calculation
t=lamda/(4*(u0-ue));#Thicknesss of quarter wave plate 

#Result
print 'Thicknesss of quarter wave plate =',round(t/1e-4,2),'*10^-4 cm'
Thicknesss of quarter wave plate = 0.86 *10^-4 cm