#Given
w=6328.0*10**-10 #m
K=1.38*10**-23 #J/k
T=300 #K
e=6.63*10**-34
c=3*10**8
#Calculation
E=e*c/w
N=math.exp(-E/(K*T))
#Result
print"Ratio of population of two states is", round(N*10**33,0)*10**-33
#Given
N=1.059*10**-30
T=330
K=1.38*10**-23 #J/K
E=3.147*10**-19
c=3*10**8
h=6.63*10**-34
#Calculation
w=h*c/E
#Result
print"Wavelength of light is",round(w*10**9,0),"*10**-9 m"
#Given
v=3000.0 #bandwidth in Hz
c=3*10**8 #speed of light in m/ s
#Calculation
t =1/ v
l=(c*t)
#Result
print"Coherence length for laser is",l*10**-3,"km"
#Given
theta =32 #angle on slit in second
w=5*10**-5
#Calculation
theta1 =theta* 3.14/(60*180)
C=w/ theta1
#Result
print"Transverse coherence length is",round(C,3),"cm"
#Given
t=1.0*10**-10 #coherence time in sec
c=3*10**8 #speed of light in m/ s
w =54.0*10**-8 #wave length of nonô€€€monochromacity in m
#Calclation
B =1/ t
v=c/w
D=B/v
#Result
print"Degree is",D
#Given
t=5.0*10**-10 #s
c=3*10**8
#Calculation
l=t*c
v=1/t
#Result
print"Coherence length is", v*10**-9,"*10**9 Hz"
#Given
L=7200*10**-10 #m
d=5*10**-3
f=0.1
p=50*10**-3
#Calculation
a=L/d
A=a**2*f**2
I=p/A
#Result
print"Area of image is", A,"m**2"
print"Intensity of image is",round(I*10**-8,3),"*10**8 W/m**2"
#Given
w=7*10**-7 #m
a=5.0*10**-3
D=4*10**8
#Calculation
A=1.22*w/a
x=(D*A)**2*3.14
#Result
print"(i) The angular spread is",round(A*10**4,1),"*10**-4 radian"
print"(ii) Areal spread when the beam reaches the moon is", round(x*10**-10,2),"*10**10 m**2"
#Given
L=0.5 #m
#Calculation
v=c/(2*L)
#Result
print"Mode separation of longitudinal cavity is",v*10**-8,"*10**8 Hz"