#Given
w=6*10**-7
a=12*10**-7
#Calculation
import math
A=math.asin(w/a)*180/3.14
#Result
print"Half angular width of central bright maxima is",round(A,0),"degree"
#Given
a =0.2*10**-3 #m
D =2.0 # n m
x=5*10**-3
#Calculation
w=(a*x)/D
w1=w*1*10**10
#Result
print"Wavelength of light is", w1,"A"
#Given
f=100 #cm
L=6000*10**-8
d=0.01
#Calculation
x=1.22*f*L/d
#Result
print"Separation is",x,"cm"
#Given
w=6*10**-7 #m
D=2
x=5.0*10**-3
#Calculation
a=(w*D)/x
#Result
print"Slit width is", a*10**4,"*10**-4 m"
#Given
w=589*10**-9
D=1
a=0.1*10**-3
#Calculation
import math
A=math.asin(w/a)
A1=2*A
y=D*A1
y1=y*100
#Result
print"Angular width of central maxima is", round(A1,3),"radian"
print"Linear width of central maxima is",round(y1,3),"cm"
#Given
a=22.0*10**-5
L=5500*10**-8
n=1
n1=2
#Calculation
import math
a1=L/a
A=math.asin(a1)*180/3.14
a2=math.asin(2*L/a)*180/3.14
#Result
print"Angular position of two minima is",round(A,2), "Degree and", round(a2,0),"Degree"
#Given
n=1
L=5890*10**-10
a=3*10**-4
#Calculation
import math
A=math.asin((L/a)*180/3.14)
A1=math.asin((3*L)/(2.0*a))*180/3.14
#Result
print"Angle is", round(A1*10**2,0),"Degree"
#Given
L=4890*10**-10
a=5*10**-3
f=0.4
#Calculation
x1=f*L/a
x2=3*L*f/(2*a)
x=x2-x1
#Result
print"Distance between first dark fringe and new bright fringe is", x,"m"
#Given
L=5000*10**-8 #cm
a=5000.0
#Calculation
n=1/(L*a)
#Result
print"Highest order spectrum is",n
#Given
c=1/5000.0
w1=5890*10**-8 #cm
n =2
#Calculation
import math
theta = math.asin ((n*w1)/c)*180/3.14
w2 =5896*10** -8
theta1 = math.asin ((n*w2)/c)*180/3.14
a= theta1 - theta
w =5893*10**-8
dw=w2 -w1
N=w/( dw*n)
N1= floor (N)
#Result
print"(a) Angular width is",round(theta,3),"Degree"
print"(b) Angular separation is",round(a,3),"Degree"
print"(c) No. of lines is",N1,"Grating"
#Given
w1=589*10**-9
w2 =5896*10**-10
dw=w2-w1 # change o f wave l eng th
w=( w1+w2) /2.0 #mid wavelength
n =1
#Calculation
N=w/(n*dw)
N1= floor (N)
#Result
print"Number of lines is", N1,"grating"
#Given
n1=2
n2=3.0
L=6360 #A
#Calculation
L2=n1*L/n2
#Result
print"Wavelength is",L2,"A"
#Given
L1=5400*10**-8
L2=4050.0*10**-8
a=30 #Degree
b=1350.0*10**-8
#Calculation
A=b/(L1*L2*2)
#Result
print"Number of lines is", round(A,0)
#Given
a=30 #Degree
L=5000*10**-8
x=0.01 #Radian
#Calculation
import math
A=math.tan(a*3.14/180.0)
X=1/A
L1=L*x*X
#Result
print"Difference in two wavelength is", round(L1*10**8,1),"A"
#Given
#Given
c=1/4000.0 # grating element
w=5000*10**-8
n =3
#Calculation
import math
D=n/(c* math.sqrt (1 -((n*w/c)**2) ))
#Result
print"Dispersive power is",D*10**-4,"*10**4 rad/sec"
#Given
a=30 #Degree
n=2.0
A=5000.0
#Calculation
import math
L=math.sin(a*3.14/180.0)/(n*A)
#Result
print"Wavelength is", round(L*10**8,0),"A"
#Given
l =5 #length of grating
N =16000
w =6000
n =2.0
#Calculation
T=N*l
R=T*n
dw=w/(T*n)
#Result
print"(a) Resolving power is",R
print"(b) Wavelength is",dw,"A"
#Given
w1=5500 #A
w2=5501
n=2
W1=8500
W2=8501
#Calculation
w=(w1+w2)/2.0
W=w2-w1
N=w/W
W11=(W1+W2)/2.0
W12=W2-W1
N1=W11/W12
#Result
print"The required rosolving power", N1,"is less than the actual power"
#Given
c =12.5*10**-5
w=5*10**-5
N =40000
#Calculation
n=c/w
n1= floor (n)
P=n1*N
#Result
print"Resolving power is",P
#Given
n=2500.0
w=0.5
n1=1
L=5890*10**-8
a=5000
L2=5896*10**-8
L3=5893*10**-8
c=6*10**-8
#Calculation
import math
A=w/n
A1=math.asin(L*a)*180/3.14
A2=math.asin(L2*a)*180/3.14
A3=A2-A1
N=L3/c
#Result
print"Angular separation between Two sodium lines are", round(A1,1),"degree and",round(A2,1),"degree"
print"Number of lines required is",round(N,0),"lines"
#Given
l=2 #inches
n=40000
N=3
#Calculation
r=n*l
p=N*r
#Result
print"The resolving power in third order is",p
#Given
N=40000.0
a=12.5*10**-5
w=80000
#Calculation
n=w/N
L=a/n
L1=L*10**8/(n*N)
L2=L*10**8+L1
#Result
print"Range of wavelength is", round(L2,2),"A"
#Given
L=0.5*10**-8
#Calculation
import math
w=math.sin(10*3.14/180.0)*L/(math.cos(10*3.14/180.0)*(3/(60.0*60.0))*(math.pi/180.0))
W=w+L
N=W/(L*2)
N1=(N*2*w)/(L*2)
#Result
print"Minimum grating is", round(w*10**5,0)
#Given
w=5000 #A
N=30000
n=2.0
#Calculation
W=w/(n*N)
#Result
print"Smallest wavelength separation is", round(W,3),"A"
#Given
f =50 #focal length of convex lens in cm
w=5*10**-5 #wavelength used in cm
n =1
#Calculation
import math
r= math.sqrt (n*f*w)
#Result
print"Radius is",r,"cm"
#Given
d =0.2 #diameter of ring
n =1
w=5*10**-5
#Calculation
r=d/2.0
f=(r**2) /(w*n)
#Result
print"Position of brightest spot is",f,"cm"
#Given
f =1 #focal length in m
n =1
w =5893*10**-10
n1 =3
n2=5
#Calculation
r= math.sqrt (n*f*w)
r1= math.sqrt (n1*f*w)
r2= math.sqrt (n2*f*w)
#Result
print"Radius is",round(r*10**4,2),"*10**-4 m,",round(r1*10**3,3),"*10**-3 m,",round(r2*10**3,3),"*10**-3 m"
#Given
f1=8
w1=6000*10**-8
w2=4800.0*10**-8
#Calculation
f2=f1*w1/w2
#Result
print"Focal length is",f2,"cm"
#Given
n=1
#Calculation
f1=n
#Result
print"Principal focal length is",f1,"cm"
#Given
r =200 #radius of curvature in cm
#Calculation
f=r
#Result
print"Principle focal length is",f*10**-2,"m"