# Given
l = 6.6e-7 # wavelength of light in meter
L = 1.32e-5 # coherence length in meter
#Calculation
coherence_time = L / (3 * 10 ** 8)#calculation for coherence time
#Result
print "Coherence time = %.1e sec"%coherence_time
# Given
l = 5.896e-7 # wavelength of light in meter
L = 2.945e-2 # coherence length in meter
#Calculations
coherence_time = L / (3 * 10**8) # calculation for coherence time
n = L / l # calculation for number of oscillations
#Results
print "Coherence time = %.3e sec."%coherence_time
print "No. of oscillations = %.2e"%n
# Given
l = 6.058e-7 # wavelength of light in meter
L = 0.2 # coherence length in meter
#Calculations
line_width = (l**2) / L#calculation for line width
f_spread = (3 * 10**8) / L# calculation for frequency spread
f = (3 * 10**8) / l # calculation for frequency
f_stability = f_spread / f # calculation for frequency stability
coherence_time = L / (3 * 10 ** 8) # calculation for coherence time
#Results
print("Coherence time = %.3e sec"%coherence_time)
print("Line width = %.3e meter"%line_width)
print("Frequency stability = %.1e"%f_stability) #incorrect answer in the textbook
# Given
lambda_D = 5.5e-13 # Doppler width of orange light in meter
l = 6.058e-7 # wavelength of light in meter
#Calculation
coherence_length = (l ** 2) / lambda_D# calculation for coherence light
#Result
print("Coherence length = %.4f meter"%coherence_length)
# Given
lambda1 = 5.461e-7 # wavelength of light emitted by mercury vapour lamp in meter
band_width1 = 6e8 # band width for mercury vapour lamp in Hz
lambda2 = 6.328e-7 # the operating wavelength of light for He Ne laser
band_width2 = 1e6 # band width for laser in Hz
#Calculations
delta_lambda1 = (lambda1**2 * band_width1) / 3e8 # calculation for difference between two wavelength for mercury vapour
delta_L1 = lambda1**2 / delta_lambda1 # calculation for coherence length for mercury vapour lamp
delta_lambda2 = (lambda2**2 * band_width2) / 3e8 # calculation for difference between two wavelength for He Ne laser
delta_L2 = lambda2**2 / delta_lambda2 # calculation for coherence length for He Ne laser
R = delta_L1/delta_L2 # calculation for ratio of coherence length of mercury vapour lamp to the coherence length of He Ne laser
#Result
print("The ratio of coherence length of mercury vapour lamp to the coherence length of He Ne laser = 1:%d"%(1./R))
#Answer differes due to rounding-off values
# Given
band_width = 3000 # band width of laser in hertz
#Calculation
coherence_length = (3 * 10 ** 8) / band_width#calculation for coherence length
#Result
print("Coherence length of laser = %.f meter"%(coherence_length))
# Given
l = 6.328e-7 # wavelength of monochromatic light in meter
t = 10**-10 # chopping time in sec
#Calculations
coherence_length = (3 * 10 ** 8) * t # calculation for coherence length of monochromatic light
band_width = 1 / t # calculation for band width
line_width = ((l ** 2) * band_width) / (3 * 10 ** 8) # calculation for line width
#Result
print("Coherence length of monochromatic light = %.e meter. \nband width = %.f Hz. \nline width = %.4f A."%(coherence_length, band_width, line_width*1e10))
# Given
l = 6.438e-7 # wavelength of red cadmium line in meter
L = 3.8e-1 # coherence length in meter
#Calculations
coherence_time = L / (3 * 10 ** 8)# calculation for coherence time
spectral_line_width = (l**2) / L # calculation for spectral line width
#Result
print("Coherence time of red cadmium line = %.3e sec. \nSpectral line width = %.2e meter."%(coherence_time,spectral_line_width))
from math import sqrt
from sympy import *
# Given
ratio = 16 # ratio of intensities of two waves
#Calculation
a1 = sqrt(ratio) # by the formula amplitude = sqrt(intensity)
a2 = 1
R = ((a1 + a2) ** 2) / ((a1 - a2) ** 2)# calculation for ratio of maximum intensity with minimum intensity
R = nsimplify(R)
#Result
print "Ratio of maximum intensity with minimum intensity =",R
# Given
d = 0.0001 # distance between two slits in meter
Beta = 0.005 # width of the fringes formed in meter
D = 1 # distance between slit and screen in meter
#Calculation
l = (Beta * d) / D # calculation for wavelength of light = %e meter
#Result
print("Wavelength of light = %.f A. "%(l*1e10))
from math import pi
# Given
alpha = pi / 180 # angle of bi prism in radian
mu = 1.5 # refractive index of biprism
a = 0.4 # distance of bi prism from slit in meter
b = 0.6 # distance of bi prism from screen in meter
l = 5.893e-7 # wavelength of light in meter
#Calculation
D = a + b # calculation for distance between slits and screen
fringe_width = (l * D) / (2 * a * (mu - 1) * alpha) # calculation for fringe width
#Result
print("Fringe width = %.3e meter."%(fringe_width))
from math import sqrt
# Given
d1 = 4.05e-3 # distance between slits in first position in meter
d2 = 2.90e-3 # distance between slits in second position in meter
l = 5.893e-7 # wavelength of light in meter
D = 1 # distance between slit and screen
#Calculations
d = sqrt(d1 * d2)# calculation for distance between fringe
fringe_width = (l * D) / d # calculation for fringe width
#Result
print("Fringe width = %.3f mm"%(fringe_width*1000))
from math import floor
# Given
fringe_width = 3.42e-4 # fringe width in meter
mu = 1.542 # refractive index of glass
Xn = 2.143e-3 # shift of central fringe in meter
l = 5.89e-7 # wavelength of light in meter
#Calculations
n = Xn / fringe_width # calculation for order of the fringe
t = (floor(n) * l) / (mu - 1) # calculation for thickness of the glass
#Result
print("Thickness of glass sheet = %.2e meter. "%t)
# Given
fringe_width = 9e-4 # fringe width in meter
a = 0.1 # distance of bi prism from slit in meter
b = 0.9 # distance of bi prism from screen in meter
l = 5.896e-7 # wavelength of light in meter
#Calculation
D = a + b # calculation for distance between slits and screen
d = (l * D) / fringe_width # calculation for distance between coherent sources
#Result
print("Distance between coherent sources = %.2e meter. "%d)
from math import pi,degrees
# Given
fringe_width = 0.0135 # fringe width in meter
a = 0.5 # distance of bi prism from slits in meter
b = 0.5 # distance of bi prism from screen in meter
mu = 1.5 # refractive index of bi prism
alpha = pi / 360 # angle of bi prism in radian
#Calculations
D = a + b # calculation for distance between slits and screen
l = (2. * a * (mu - 1) * alpha * fringe_width) / D # calculation for wavelength of light = %e meter
#Result
print("Wavelength of light = %.f A "%(l*1e8))
#Answer differs due to rounding-off errors
from math import pi
# Given
a = 45 # distance between slit and bi prism in cm
alpha = pi / 180 # angle of bi prism in radian
Mu = 1.5 # refractive index of bi prism
fringe_width = 15.6e-3 # fringe width in meter
D = 90 #cm
#Calculations
d2 = (2*a*(Mu-1)*alpha) # calculation for distance between screen and slit
l = (fringe_width * d2) / D # calculation for wavelength
#Result
print("Wavelength of light = %.f A."%(l/1e-8))
#Answer differs due to rounding-off errors
# Given
D = 1.20 # distance between source and eye piece in meter
Xn = 1.9e-2 # distance move by eye piece for 20 fringe in meter
n = 20 # no. of fringes
d = 6e-4 # distance between slits in meter
#Calculation
l = (Xn * d) / (D * n)# calculation for wavelength
#Result
print("Wavelength of light = %.f A."%(l*1e10))
from math import floor
# Given
lambda1 = 5.890e-7 # wavelength of first light in meter
lambda2 = 4.358e-7 # wavelength of second light in meter
n1 = 40 # no. of fringes observed in the field of in first case
#Calculation
n2 = (n1 * lambda1) / lambda2 # by using formula n1*lambda1=n2*lambda2
#Result
print("No. of fringes observed in field of view in second case = %d. "%(floor(n2)))
from math import cos
# Given
l = 5.893e-7 # wavelength of light in meter
Mu = 1.42 # refractive index of soap film
i = 0 # incidence angle in radian
r = 0 # refracted angle in radian
n = 1 # for smallest thickness
#Calculations
t1 = ((2 * n - 1) * l) / (4 * Mu * cos(r)) # calculation for east thickness of soap film for bright fringe
t2 = (n * l) / (2 * Mu * cos(r)) # calculation for east thickness of soap film for dark fringe
#Result
print("Least thickness of soap film -\n (a) For bright fringe = %.3e mm. \n (b) For dark fringe = %.3e mm."%(t1*1000,t2*1000))
from math import cos,pi,sin,asin
# Given
l = 5.89e-7 # wavelength of light in meter
Mu_o = 1.4 # refractive index of oil film
Mu_w = 1.33 # refractive index of water
i = pi / 6 # incidence angle in radian
n = 6 # no. of fringes seen
#Calculation
r = asin(sin(i) / Mu_o) # calculation for angle of refraction
t = (n * l) / (2 * Mu_o * cos(r)) # calculation for thickness of film
#Result
print("Thickness of oil film = %.3e mm."%(t*1000))
from math import cos
# Given
l = 6e-7 # wavelength of light in meter
Mu = 1.463 # refractive index of soap film
i = 0 # incidence angle in radian
r = 0 # refracted angle in radian
n = 1 # for smallest thickness
#Calculation
t = ((2 * n - 1) * l) / (4 * Mu * cos(r)) # calculation for least thickness of soap film for bright fringe
#Result
print("Least thickness of soap film for bright fringe = %.3e mm. "%(t*1000))
from math import cos,pi,sin
# Given That
l = 5.89e-7 # wavelength of light
Mu_o = 1.46 # refractive index of oil film
i = pi / 6 # incidence angle in radian
n = 8 # no. of fringe is seen
#Calculations
r = asin(sin(i) / Mu_o) # calculation for angle of refraction
t = (n * l) / (2 * Mu_o * cos(r)) # calculation for thickness of oil film
#Result
print("Thickness of oil film = %.2e mm. "%(t*1000))
from math import cos,pi,floor
# Given That
lambda1 = 4e-7 # max. wavelength of light in meter
lambda2 = 5e-7 # min. wavelength of light in meter
Mu = 1.4 # refractive index of soap film
i = pi / 4 # incidence angle in radian
t = 1e-5 # thickness of oil film in meter
#Calculations
r = asin(sin(i) / Mu) # calculation for angle of refraction
n1 = (2 * Mu * t * cos(r)) / lambda1 # calculation for no. of dark bands seen in the case of max. wavelength
n2 = (2 * t * Mu * cos(r)) / lambda2 # calculation for no. of dark seen in the case of min. wavelength
n = floor(n1) - floor(n2) # claculation for no. of dark bands seen between wavelengths
#Result
print("No. of dark bands seen between wavelengths = %d"%n)
from math import cos,pi
# Given
l = 5.89e-7 # wavelength of light in meter
Mu = 1.5 # refractive index of soap film
r = pi / 3 # refracted angle in radian
n = 1 # for smallest thickness
#Calculation
t = (n * l) / (2 * Mu * cos(r)) # calculation for least thickness of soap film for bright fringe
#Result
print("Least thickness of soap film for bright fringe = %.3e meter "%t)
from math import cos,pi,sin
# Given That
lambda1 = 6.1e-7 # max. wavelength of light in meter
lambda2 = 6e-7 # min. wavelength of light in meter
Mu = 1.333 # refractive index of film
i = pi / 4 # incidence angle in radian
#Calculation
r = asin(sin(i) / Mu) # calculation for angle of refraction
n = lambda2 / (lambda1 - lambda2) # calculation for no. of bright band
t = (n * lambda1) / (2 * Mu * cos(r)) # calculation for thickness of the film
#Result
print("Thickness of the film = %.2e meter "%t)
from math import cos
# Given
l = 6e-7 # wavelength of light in meter
Mu = 1.463 # refractive index of soap film
i = 0 # incidence angle in radian
r = 0 # refracted angle in radian
n = 1 # for smallest thickness
#Calculation
t = ((2 * n - 1) * l) / (4 * Mu * cos(r)) # calculation for thickness of soap film
#Result
print("\n Least thickness of soap film for bright fringe = %.3e meter. "%t)
from math import cos,sin,asin,pi,degrees,radians
# Given
lambda1 = 6.1e-7 # max. wavelength of light in meter
lambda2 = 6e-7 # min. wavelength of light in meter
Mu = 4. / 3 # refractive index of film
i = asin(4. / 5) # incidence angle in radian
#Calculation
r = asin(sin(i) / Mu)*180/pi # calculation for angle of refraction
n = lambda2 / (lambda1 - lambda2) # calculation for order of fringe
t = (n * lambda1) / (2 * Mu * cos(r*pi/180)) # calculation for thickness of film
#Result
print("Thickness of the film = %.3e mm. "%(t*1000))
# Given
l = 5.893e-7 # wavelenth of light in meter
n = 20 # no. of interference fringes are observed
Mu = 1 # refractive index of air
i = 0 # incidence angle in radian
r = 0 # refracted angle in radian
#Calculation
t = (n * l) / (2 * Mu) # calculation for thickness of fringe
#Result
print("Thickness of wire = %.3e mm. "%(t*1000))
# Given
lamda = 6e-7 # wavelength of light in meter
Mu = 1 # refractive index of air film
l = 0.06e-3 # diameter of wire in meter
L = 0.15 # distance of wire from edge in meter
#Calculation
theta = l / L #calculation for theta
fringe_width = (lamda * L)/ (2 * Mu * l) # calculation for fringe width
#Result
print("Fringe width = %.1e mm."%fringe_width)
# Given
l = 4.56e-7 # wavelength of light in meter
theta = 1.9e-4 # angle of wedge in radian
Mu = 1 # refractive index of air
#Calculation
fringe_width = l / (2 * Mu * theta)# calculation for fringe width
#Result
print("Fringe width = %.1f mm."%(fringe_width*1000))
# Given
lamda = 6e-7 # wavelength of light in meter
Mu = 1 # refractive index of air film
l = 0.03*10**-3 # diameter of wire in meter
L = 0.15 # distance of wire from edge in meter
i = 0 # incidence angle in radian
r = 0 # refracted angle in radian
#Calculation
theta = l / L # calculation for theta
fringe_width = lamda / (2 * Mu * theta) # calculation for fringe width
#Result
print("Fringe width = %.1f mm."%(fringe_width*1000))
# Given
l = 5.890e-7 # wavelength of light in meter
theta = 1e-2 # angle of wedge in radian
n = 12 # no. of dark fringe
Mu = 1 # refractive index of air
i = 0 # incidence angle in radian
r = 0 # refracted angle in radian
#Calculatiom
x = ( n * l) / (2 * theta) # calculation for distance
#Result
print("Distance = %.2f mm. "%(x*1000))
from math import pi
# Given
l = 5.5e-7 # wavelength of light in meter
w = 2e-5 # fringe width in meter
Mu = 1.5 # refractive index of film
i = 0 # incidence angle in radian
r = 0 # refracted angle in radian
#Calculation
theta = l / (2 * Mu * w)# calculation for the angle of the film
#Result
print("Angle of wedge = %.3f degree. "%(theta * 180/pi))
# Given
d1 = 5.9e-3 # diameter of 15th ring in meter
d2 = 3.36e-3 # diameter of 5th ring in meter
R = 1 # radius of the plano-convex lens in meter
#Calculations
p = 15 - 5
l = ((d1**2) - (d2**2)) / (4 * p * R) # calculation for wavelength of light
#Result
print("Wavelength of light = %.f A."%(l*1e10))
# Given
d1 = 2e-3 # diameter of 10th ring in meter
d2 = 3e-3 # diameter of 20th ring in meter
f = 0.9 # focal length of the plano-convex lens in meter
mu = 1.5 # refractive index of lens
#Calculations
p = 20 - 10
R = (f * (mu - 1)) # calculation for radius of convex surface of lens
l = ((d2**2) - (d1**2)) / (4 * p * R)
#Result
print("Wavelength of light = %.f nm."%(l*1e9))
#Incorrect answer in the textbook
from math import sqrt
# Given
l = 5.896e-7 # wavelength of light in meter
f = 1 # focal length of the plano-convex lens in meter
mu = 1.5 # refractive index of lens
n = 7 # no. of bright ring
#Calculations
p = 20 - 10
R = (f * (mu - 1)) * 2 # calculation for radius of lens
D = sqrt(4 * n * l * R) # calculation for diameter of 7th ring
#Result
print("Diameter of 7th bright ring = %.3e meter."%(D))
from math import sqrt
# Given That
lambda1 = 6e-7 # wavelength of first light in meter
lambda2 = 4.8e-7 # wavelength of second light in meter
r = 0.96 # radius of curvature of curved surface of lens in meter
#Calculations
n = lambda2 / (lambda1 - lambda2) # calculation for order of fringe
D = sqrt(4 * (n + 1) * lambda2 * r) # calculation for diameter of ring
#Result
print("Diameter of (n +1)th dark ring of lambda2. = %.2e meter."%D)
from math import sqrt
# Given
lambda1 = 6e-7 # wavelength of first light in meter
lambda2 = 5.9e-7 # wavelength of second light in meter
r = 0.9 # radius of curvature of curved surface of lens in meter
#Calculations
n = lambda2 / (lambda1 - lambda2) # calculation for order of ring
D = sqrt(4 * (n + 1) * lambda1 * r) # calculation for diameter of ring
#Result
print("Diameter of nth dark ring of lambda1 = %.4f meter."%D)
# Given
l = 5.896e-7 # wavelength of light in meter
D = 4e-3 # diameter of 7th brighter fringe in m
R = 1 # radius of curvature in m
n = 7 # for seventh brighter fringe
#Calculation
mu = 2*(2*n-1)*l*R / D**2 # calculation for refractive index of liquid
#Result
print("Refractive index of liquid = %.2f."%mu)
# Given
D1 = 3e-3 # diameter of nth dark fringe when liquid is absent between the lens and the plate in m
D2 = 2.5e-3 # diameter of nth dark fringe when liquid is introduced between the lens and the plate in m
c = 3e8 # velocity of light in vacuum in m/sed
#Calculations
mu = D1**2 / D2**2# calculation for refractive index
v = 3e8 / mu # calculation for velocity of light
#Result
print("Refractive index of liquid = %.2f.\n velocity of light in the liquid = %.2e m/sec."%(mu,v))
# Given
l = 5.896e-7 # wavelength of light in meter
D = 5.1e-3 # diameter of 16th brighter fringe in m
R = 1 # radius of curvature in m
n = 16 # for sixteenth brighter fringe
#Calculation
mu = 4*n*l*R / D**2 # calculation for refractive index of liquid
#Result
print("Refractive index of liquid = %.2f"%mu)
from math import sqrt
# Given
l = 6.3e-7 # wavelength of light in meter
mu = 1.63 # refractive index of liquid
R = 0.9 # the radius of curvature of convex lens in meter
#Calculation
r = sqrt(l*R/mu) # calculation for the radius of smallest dark ring
#Result
print("The radius of smallest dark ring = %.2f mm."%(r*1000))
# Given
r = 10./7 # ratio of nth ring diameter for two media
#Calculation
R = (1/r)**2 # calculation for the ratio of refractive index of media
#Result
print("The ratio refractive index of media = %.f:100."%(R*100))
# Given
R = 0.9 # radius of curvature of the lower face of the lens in meter
D = 4.8e-3 # diameter of the 10th dark ring in meter
n = 10 # for 10th dark ring
#Calculation
l = D**2 / (4 * n * R) # calculation for wavelength of light
#Result
print("Wavelength of light = %.f A."%(l * 1e10))
# Given
r = 1./2 # ratio of 5th ring diameter
#Calculatio
R = (1/r)**2 # calculation for refractive index of liquid
#Result
print("Refractive index of liquid = %.f. "%R)
from math import sqrt
# Given That
R = 1 # radius of curvature of lens of both side in meter
l = 5.4e-7 # wavelength of monochromatic light in meter
n1 = 5 # for 5th dark ring
n2 = 15 # for 10th dark ring
#Calculation
r1 = sqrt((n1*l)/(1/R + 1/R)) # calculation for radius of 5th dark ring
r2 = sqrt((n2*l)/(1/R + 1/R)) # calculation for radius of 15th dark ring
d = r2 - r1 # calculation for distance between 5th and 15th dark ring
#Result
print("Distance between 5th and 15th dark ring = %.3f cm."%(d * 100))
# Given
x = 2.5e-5 # distance moved by movable mirror in meter
t = 5e-5 # thickness of mica sheet in meter
#Calculation
mu = x / t + 1 # calculation for refractive index of mica
#Result
print("Refractive index of mica = %.1f"%mu)
# Given
x = 6e-5 # distance moved by movable mirror in meter
N = 200 # no. of fringes crossed the field of view
#Calculation
l = (2 * x) / N # calculation for wavelength of light
#Result
print("Wavelength of light = %.f A."%(l * 1e10))
# Given
n = 50 # no. of bands crosses the line of observation
l = 5.896e-7 # wavelength of light in meter
mu = 1.4 # refractive index
#Calculation
t = n*l / (2*(mu-1)) # calculation for thickness of the plate
#Result
print("Thickness of the plate = %.2e m."%t)
# Given
n = 50 # no. of bands crosses the line of observation
lambda1 = 5.896e-7 # max. wavelength of light in meter
lambda2 = 5.89e-7 # min. wavelength of light in meter
#Calculation
x = lambda1 * lambda2 /(lambda1 - lambda2) # calculation for the path difference
#Result
print("The path difference = %.4f mm."%(x*10**3))
# Given
x = 2.948e-5 # distance moved by movable mirror in meter
n = 100 # no. of fringes cross the field of view
#Calculation
l = 2*x/n # calculation for wavelength of monochromatic light
#Result
print("Wavelength of monochromatic light = %.f A."%(l * 1e10))
# Given
lambda1 = 5.896e-7 # max. wavelength of light in meter
lambda2 = 5.89e-7 # min. wavelength of light in meter
#Calculation
x = lambda1 * lambda2 /(2*(lambda1 - lambda2)) # calculation for the path difference
#Result
print("The distance through which the movable mirror is move = %.3f mm."%(x*10**3))
# Given
x = 2.945e-4 # distance moved by movable mirror in meter
l = 5.893e-7 # mean wavelength of light in meter
#Calculation
delta_lambda = l**2 / (2*x) # calculation for difference between two wavelengths
#Result
print("Difference between two wavelengths = %.3f A."%(delta_lambda*1e10))
# Given
n = 140 # no. of shift in fringe
l = 5.46e-7 # wavelength of light in meter
t = 0.2 # length of tube in meter
#Calculation
mu = (n*l)/(2*t) + 1 # calculation for refractive index of gas
#Result
print("Refractive index of gas = %.5f"%mu)