#importing modules
import math
from __future__ import division
#Variable declaration
d=0.08*10**-2; #distance between slits(m)
beta=6*10**-4; #fringe width(m)
c=3*10**8; #velocity of light(m/sec)
new=8*10**11*10**3; #frequency(Hz)
#Calculation
lamda=c/new; #wavelength(m)
D=beta*d/lamda; #distance of screen from slits(m)
#Result
print "distance of screen from slits is",D,"m"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda1=4200*10**-10; #wavelength(m)
beta1=0.64*10**-2; #first fringe width(m)
beta2=0.46*10**-2; #second fringe width(m)
#Calculation
lamda2=lamda1*2*beta2/beta1; #wavelength of light source(m)
#Result
print "wavelength of light source is",lamda2*10**10,"angstron"
#importing modules
import math
from __future__ import division
#Variable declaration
Y=1*10**-3; #distance between slits(m)
D=1; #distance between slit and screen(m)
d=1*10**-3; #point distance(m)
lamda=5893*10**-10; #wavelength(angston)
#Calculation
delta1=Y*d/D; #path difference(m)
Pd=2*math.pi*delta1/lamda; #phase difference(radian)
r=(math.cos(Pd/2))**2; #ratio of intensity
delta2=lamda/4; #path difference(m)
W=delta2*D/d; #distance of point on screen from centre(m)
#Result
print "ratio of intensity is",round(r,4)
print "distance of point on screen from centre is",round(W*10**4,3),"*10**-4 m"
print "answers in the book varies due to rounding off errors"
#importing modules
import math
from __future__ import division
#Variable declaration
I1=10; #intensity(Wm**-2)
I2=25; #intensity(Wm**-2)
#Calculation
a1bya2=math.sqrt(I1/I2);
ImaxbyImin=(a1bya2+1)**2/(a1bya2-1)**2; #ratio of maximum intensity to minimum intensity
#Result
print "ratio of maximum intensity to minimum intensity is",round(ImaxbyImin,3)
#importing modules
import math
from __future__ import division
#Variable declaration
ImaxbyImin=9/1; #ratio of fringes
#Calculation
amaxbyamin=math.sqrt(ImaxbyImin);
#Result
print "ratio of intensity is",
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=500*10**-9; #wavelength(m)
D=2; #distance of screen from slits(m)
l=5*10**-2; #distance(m)
n=100; #number of fringes
#Calculation
beta=l/n;
d=lamda*D/beta; #distance between slits(m)
#Result
print "distance between slits is",int(d*10**3),"mm"
#importing modules
import math
from __future__ import division
#Variable declaration
d=0.2*10**-3; #distance between slits(m)
lamda=550*10**-9; #wavelength(m)
D=1; #distance of screen from slits(m)
#Calculation
beta=lamda*D/d; #fringe width(m)
#Result
print "fringe width is",beta*10**3,"mm"
#importing modules
import math
from __future__ import division
#Variable declaration
n=10;
lamda=5460*10**-10; #wavelength(m)
d=0.1*10**-3; #distance between slits(m)
D=2; #distance of screen from slits(m)
#Calculation
x10=n*lamda*D/d; #distance from centre where 10th maximum is obtained(m)
tantheta1=x10/2; #angular position of 10th maximum(radian)
tantheta1=tantheta1*180/math.pi; #angular position of 10th maximum(degrees)
x1=lamda*D/(2*d); #distance from centre where 1st maximum is obtained(m)
tantheta2=x1/2; #angular position of 1st maximum(radian)
tantheta2=tantheta2*180/math.pi; #angular position of 1st maximum(degrees)
#Result
print "angular position of 10th maximum is",round(tantheta1,2),"degrees"
print "angular position of 1st maximum is",round(tantheta2,3),"degrees"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda1=650*10**-9; #wavelength(m)
lamda2=500*10**-9; #wavelength(m)
n1=10;
n2=13;
D=1; #distance(m)
d=0.5*10**-3; #seperation(m)
#Calculation
x=n1*lamda1*D/d; #least distance of the point from central maximum(m)
#Result
print "least distance of the point from central maximum is",int(x*10**3),"mm"
#importing modules
import math
from __future__ import division
#Variable declaration
n=5;
lamda=4800*10**-10; #wavelength(m)
mew_mewdash=0.3;
#Calculation
t=n*lamda/mew_mewdash; #thcikness of glass plate(m)
#Result
print "thcikness of glass plate is",t*10**6,"*10**-6 m"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
v=0.2; #volume(cc)
a=1*10**4; #area(cm**2)
r=0;
n=1;
lamda=5.5*10**-5; #wavelength(cm)
t=2;
#Calculation
d=v/a; #thickness of film(cm)
mew=n*lamda/(2*t*math.cos(r)); #refractive index of oil
#Result
print "refractive index of oil is",round(mew*10**5,2),"*10**-5"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
mew=1.33; #refractive index
i=35*math.pi/180; #angle of incidence(radian)
d=5*10**-5; #thickness(cm)
n1=1; #order
n2=2; #order
n3=3; #order
n4=4; #order
#Calculation
r=180/math.pi*math.asin(math.sin(i)/mew); #angle of reflection(degrees)
lamda1=2*mew*d*math.cos(r)/n1; #wavelength of light for 1st order(cm)
lamda2=2*mew*d*math.cos(r)/n2; #wavelength of light for 2nd order(cm)
lamda3=2*mew*d*math.cos(r)/n3; #wavelength of light for 3rd order(cm)
lamda4=2*mew*d*math.cos(r)/n4; #wavelength of light for 4th order(cm)
#Result
print "wavelength of light for 1st order is",round(lamda1*10**5,1),"*10**-5 cm"
print "answer in the book varies due to rounding off errors"
print "wavelength of light for 2nd order is",round(lamda2*10**5,2),"*10**-5 cm"
print "wavelength of light for 3rd order is",round(lamda3*10**5,2),"*10**-5 cm"
print "wavelength of light for 4th order is",round(lamda4*10**5,1),"*10**-5 cm"
#importing modules
import math
from __future__ import division
#Variable declaration
x=15; #distance(cm)
d=0.005; #diameter(cm)
lamda=6000*10**-8; #wavelength(cm)
#Calculation
alpha=d/x; #angle(radian)
beta=lamda/(2*alpha); #fringe width(cm)
#Result
print "fringe width is",beta,"cm"
#importing modules
import math
from __future__ import division
#Variable declaration
alpha=0.01; #angle(radian)
n=10;
lamda=6000*10**-10; #wavelength(m)
#Calculation
x=((2*n)-1)*lamda/(4*alpha); #distance from edge of the wedge(m)
#Result
print "distance from edge of the wedge is",x*10**4,"*10**-4 m"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=5460*10**-8; #wavelength(cm)
f=400; #focal length(cm)
n=5;
mew=1.5; #refractive index
#Calculation
R=2*f*(mew-1); #radius(cm)
Dn=math.sqrt(2*((2*n)-1)*lamda*R); #diameter of 5th fringe(cm)
#Result
print "diameter of 5th fringe is",round(Dn,2),"m"
#importing modules
import math
from __future__ import division
#Variable declaration
t=500*10**-9; #thickness(m)
f=400; #focal length(cm)
n1=0;
n2=1;
n3=2;
n4=3;
mew=1.33; #refractive index
#Calculation
lamda1=4*mew*t/((2*n1)+1); #wavelength in infrared region(m)
lamda2=4*mew*t/((2*n2)+1); #wavelength in infrared region(m)
lamda3=4*mew*t/((2*n3)+1); #wavelength in visible region(m)
lamda4=4*mew*t/((2*n4)+1); #wavelength in ultraviolet region(m)
#Result
print "wavelength in infrared region is",int(lamda1*10**10),"*10**-10 m"
print "wavelength in infrared region is",round(lamda2*10**10,1),"*10**-10 m"
print "wavelength in visible region is",int(lamda3*10**10),"*10**-10 m"
print "wavelength in ultraviolet region is",int(lamda4*10**10),"*10**-10 m"
print "of all the wavelengths reflected,",int(lamda3*10**10),"angstrom is the wavelength in the visible region"
#importing modules
import math
from __future__ import division
#Variable declaration
i=60*math.pi/180; #angle of incidence(radian)
mew=1.33; #refractive index
t=1.5*10**-6; #thickness(m)
lamda=5*10**-7; #wavelength(m)
#Calculation
r=(180/math.pi)*math.asin(math.sin(i)/mew); #angle of reflection(degrees)
r=round(r,1)*math.pi/180; #angle of reflection(degrees)
n=2*mew*t*math.cos(r)/lamda; #order of interference
#Result
print "order of interference is",int(n)
#importing modules
import math
from __future__ import division
#Variable declaration
mew=1.5; #refractive index
lamda=5890*10**-10; #wavelength(m)
r=60*math.pi/180; #angle of reflection(radian)
#Calculation
t=lamda/(2*mew*math.cos(r)); #smallest thickness of the plate(m)
#Result
print "smallest thickness of the plate is",int(round(t*10**10)),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
D4=0.4; #diameter of 4th ring(cm)
D12=0.7; #diameter of 12th ring(cm)
p1=16;
p2=8;
n=4;
#Calculation
x=n*p1/(n*p2);
D20=math.sqrt((D4**2)+(x*((D12**2)-(D4**2)))); #diameter of 20th dark ring(cm)
#Result
print "diameter of 20th dark ring is",round(D20,3),"cm"
#importing modules
import math
from __future__ import division
#Variable declaration
D10=1.4; #diameter of 10th ring(cm)
D10_dash=1.27; #changed diameter of 10th ring(cm)
#Calculation
mew=(D10**2)/(D10_dash**2); #refractive index of the liquid
#Result
print "refractive index of the liquid is",round(mew,3)
#importing modules
import math
from __future__ import division
#Variable declaration
D25=0.8; #diameter of 25th ring(cm)
D5=0.3; #diameter of 5th ring(cm)
p=25-5;
R=100; #radius of curvature(cm)
#Calculation
Nr=(D25**2)-(D5**2); #numerator
Dr=4*p*R; #denominator
lamda=Nr/Dr; #wavelength of light used(cm)
#Result
print "wavelength of light used is",lamda*10**5,"*10**-5 cm"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
w=0.02; #width(m)
theta=(math.pi/180)*(18+(14/60)); #angle(radian)
n=1;
lamda=6.56*10**-7; #wavelength(m)
#Calculation
M=w*math.sin(theta)/(n*lamda); #total number of lines in the grating
#Result
print "total number of lines in the grating is",round(M,1)
print "answer given in the book varies due to rounding off errors"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=5890*10**-10; #wavelength(m)
mew=1.5; #refractive index
r=60*math.pi/180; #angle of reflection(radian)
#Calculation
t=lamda/(2*mew*math.cos(r)); #required thickness of plate(m)
#Result
print "required thickness of plate is",int(round(t*10**10)),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
R=1; #radius of curvature(m)
n=5;
lamda=5.895*10**-7; #wavelength(m)
dn=0.3*10**-2; #diameter of ring(m)
#Calculation
mew=4*R*n*lamda/(dn**2); #refractive index of liquid
#Result
print "refractive index of liquid is",mew
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=6500; #wavelength(m)
theta=30*math.pi/180; #angle(radian)
#Calculation
a=lamda/math.sin(theta); #value of slit width(angstrom)
#Result
print "value of slit width is",int(a),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
t=500*10**-9; #thickness(m)
n1=0;
n2=1;
n3=2;
n4=3;
mew=1.33; #refractive index
#Calculation
lamda1=4*mew*t/((2*n1)+1); #wavelength in infrared region(m)
lamda2=4*mew*t/((2*n2)+1); #wavelength in infrared region(m)
lamda3=4*mew*t/((2*n3)+1); #wavelength in visible region(m)
lamda4=4*mew*t/((2*n4)+1); #wavelength in ultraviolet region(m)
#Result
print "wavelength in infrared region is",int(lamda1*10**10),"*10**-10 m"
print "wavelength in infrared region is",round(lamda2*10**10,1),"*10**-10 m"
print "wavelength in visible region is",int(lamda3*10**10),"*10**-10 m"
print "wavelength in ultraviolet region is",int(lamda4*10**10),"*10**-10 m"
print "of all the wavelengths reflected,",int(lamda3*10**10),"angstrom is the wavelength in the visible region"
#importing modules
import math
from __future__ import division
#Variable declaration
i=60*math.pi/180; #angle of incidence(radian)
mew=1.33; #refractive index
t=1.5*10**-6; #thickness(m)
lamda=5*10**-7; #wavelength(m)
#Calculation
r=(180/math.pi)*math.asin(math.sin(i)/mew); #angle of reflection(degrees)
r=round(r,1)*math.pi/180; #angle of reflection(degrees)
n=2*mew*t*math.cos(r)/lamda; #order of interference
#Result
print "order of interference is",int(n)
#importing modules
import math
from __future__ import division
#Variable declaration
mew=1.5; #refractive index
lamda=5890*10**-10; #wavelength(m)
r=60*math.pi/180; #angle of reflection(radian)
#Calculation
t=lamda/(2*mew*math.cos(r)); #smallest thickness of the plate(m)
#Result
print "smallest thickness of the plate is",int(round(t*10**10)),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
Dn=2*10**-3; #diameter of ring(m)
n=10;
lamda=500*10**-9; #wavelength(m)
#Calculation
R=Dn**2/(4*n*lamda); #radius(m)
t=Dn**2/(8*R); #thickness of air film(m)
#Result
print "thickness of air film is",t*10**6,"micro m"
#importing modules
import math
from __future__ import division
#Variable declaration
D5=0.336*10**-2; #diameter of 5th ring(m)
D15=0.59*10**-2; #diameter of 15th ring(m)
m=10;
R=1; #radius of curvature(m)
#Calculation
lamda=((D15**2)-(D5**2))/(4*m*R); #wavelength of light(m)
#Result
print "wavelength of light is",int(lamda*10**9),"nm"
#importing modules
import math
from __future__ import division
#Variable declaration
D10=0.5*10**-2; #diameter of 10th ring(m)
n=10;
lamda=5900*10**-10; #wavelength(m)
#Calculation
R=D10**2/(4*n*lamda); #radius of curvature of lens(m)
#Result
print "radius of curvature of lens is",round(R,3),"m"
#importing modules
import math
from __future__ import division
#Variable declaration
Dn=0.3*10**-2; #diameter of 10th ring(m)
R=1; #radius of curvature(m)
n=5;
lamda=5.895*10**-7; #wavelength(m)
#Calculation
mew=4*R*n*lamda/Dn**2; #refractive index of liquid
#Result
print "refractive index of liquid is",mew
#importing modules
import math
from __future__ import division
#Variable declaration
D10=1.4; #diameter of 10th ring(cm)
D10_dash=1.27; #changed diameter of 10th ring(cm)
#Calculation
mew=(D10**2)/(D10_dash**2); #refractive index of the liquid
#Result
print "refractive index of the liquid is",round(mew,3)
#importing modules
import math
from __future__ import division
#Variable declaration
I1=1;
I2=25; #intensity ratio
#Calculation
A1=math.sqrt(I1);
A2=math.sqrt(I2);
Imax=(A1+A2)**2;
Imin=(A2-A1)**2; #intensity ratio
Imax=Imax/4;
Imin=Imin/4; #dividing by a common factor to get the least ratio
#Result
print "intensity ratio is",int(Imax),":",int(Imin)
#importing modules
import math
from __future__ import division
#Variable declaration
lamda1=6*10**-5; #wavelength(cm)
lamda2=4.5*10**-5; #wavelength(cm)
n1=21;
#Calculation
n2=n1*lamda1/lamda2; #order
#Result
print "order is",int(n2)
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=51*10**-6; #wavelength(cm)
D=200; #separation between screen and slit(cm)
beta=1; #fringe width(cm)
n=10;
#Calculation
d=lamda*D/beta; #slit separation(cm)
#Result
print "slit separation is",d*100,"m"
#importing modules
import math
from __future__ import division
#Variable declaration
D=50; #separation between screen and slit(cm)
x=0.2; #fringe shift(cm)
d=0.1; #separation between slits(cm)
mew=1.58; #refractive index
#Calculation
tow=x*d/(D*(mew-1)); #thickness of mica sheet(cm)
#Result
print "thickness of mica sheet is",round(tow*10**4,3),"*10**-4 cm"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=5000*10**-8; #wavelength(cm)
D=50; #separation between screen and slit(cm)
d=0.05; #separation between slits(cm)
#Calculation
beta=lamda*D/d; #fringe width(cm)
#Result
print "fringe width is",beta,"cm"
#importing modules
import math
from __future__ import division
#Variable declaration
D=180; #separation between screen and slit(cm)
d=0.04; #separation between slits(cm)
beta=0.3; #fringe width(cm)
#Calculation
lamda=round(beta*d*10**4/D,2); #wavelength(cm)
#Result
print "wavelength is",int(lamda*10**4),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
D=80; #separation between screen and slit(cm)
d=0.1; #separation between slits(cm)
beta=0.04; #fringe width(cm)
#Calculation
lamda=beta*d/D; #wavelength(cm)
#Result
print "wavelength is",int(lamda*10**8),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=5000*10**-8; #wavelength(cm)
D=50; #separation between screen and slit(cm)
d=0.05; #separation between slits(cm)
#Calculation
beta=lamda*D/d; #fringe width(cm)
#Result
print "fringe width is",beta,"cm"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=7*10**-5; #wavelength(cm)
n=2;
mew=1.33; #refractive index
#Calculation
t=(((2*n)+1)*lamda/2)/(2*mew); #thickness of soap film(cm)
#Result
print "thickness of soap film is",round(t*10**5,4),"*10**-5 cm"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=5460*10**-8; #wavelength(cm)
t=6.3*10**-4; #thickness(cm)
n=6;
#Calculation
mew=(n*lamda/t)+1; #refractive index
#Result
print "refractive index is",mew
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=5000*10**-8; #wavelength(cm)
n=16;
mew=1.56; #refractive index
#Calculation
t=n*lamda/(mew-1); #thickness(cm)
#Result
print "thickness is",round(t*10**4,1),"*10**-4 cm"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=6000*10**-8; #wavelength(cm)
n=1;
mew=1.5; #refractive index
r=50*math.pi/180; #angle of refraction(radian)
#Calculation
t=n*lamda/(2*mew*math.cos(r)); #least thickness of glass plate(cm)
#Result
print "least thickness of glass plate is",round(t*10**5,2),"*10**-5 cm"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=5000*10**-8; #wavelength(cm)
mew=1.5; #refractive index
beta=1; #assume
S=6*beta;
#Calculation
t=S*lamda/(beta*(mew-1)); #least thickness of glass plate(cm)
#Result
print "least thickness of glass plate is",int(t*10**4),"*10**-4 cm"
#importing modules
import math
from __future__ import division
#Variable declaration
D8=1.42; #diameter of 8th ring(cm)
D8dash=1.25; #changed diameter of 8th ring(cm)
#Calculation
mew=D8**2/D8dash**2; #refractive index of liquid
#Result
print "refractive index of liquid is",round(mew,2)
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=6000*10**-8; #wavelength(cm)
n=1;
mew=1.33; #refractive index
r=0*math.pi/180; #angle of incidence(radian)
#Calculation
t=n*lamda/(2*mew*math.cos(r)); #thickness of thinnest film(cm)
#Result
print "thickness of thinnest film is",round(t*10**5,4),"*10**-5 cm"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=6000*10**-8; #wavelength(cm)
Dm=0.65; #diameter of 8th ring(cm)
Dn=0.35; #changed diameter of 8th ring(cm)
#Calculation
R=(Dm**2-Dn**2)/(4*lamda); #radius of curvature of lens(cm)
#Result
print "radius of curvature of lens is",int(R),"cm"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
Da=1.45; #diameter of 12th ring in air medium(cm)
Dl=1.25; #diameter of 12th ring in liquid(cm)
#Calculation
mew=Da**2/Dl**2; #refractive index of liquid
#Result
print "refractive index of liquid is",mew
#importing modules
import math
from __future__ import division
#Variable declaration
m1=15;
n=5;
m2=25;
D15=0.62; #diameter of 15th ring(cm)
D5=0.3; #diameter of 5th ring(cm)
#Calculation
x=D15**2-D5**2;
y=m1-n;
z=m2-n;
r=4*z/(4*y);
D25=math.sqrt((r*x)+(D5**2)); #diameter of 25th ring(cm)
#Result
print "diameter of 25th ring is",round(D25,3),"cm"
#importing modules
import math
from __future__ import division
#Variable declaration
lamda=5890*10**-8; #wavelength(cm)
Dm=0.590; #diameter of 8th ring(cm)
Dn=0.336; #changed diameter of 8th ring(cm)
m=15;
n=5;
#Calculation
R=(Dm-Dn)/(4*lamda*(m-n)); #radius of curvature of lens(cm)
#Result
print "radius of curvature of lens is",round(R,1),"cm"
#importing modules
import math
from __future__ import division
#Variable declaration
R=70; #radius of curvature of lens(cm)
n=10;
Dn=0.433; #diameter of 10th dark ring(cm)
#Calculation
lamda=Dn**2/(4*R*n); #wavelength of light(cm)
#Result
print "wavelength of light is",round(lamda*10**5,3),"*10**-5 cm"
print "answer given in the book varies due to rounding off errors"