#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'
#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'
#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'
#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)
#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'
#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'
#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
#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'