Chapter 12 - Quantum theory

Example E1 - Pg 276

In [1]:
#calculate the number of photons required
#Initialization of variables
import math
P=100. #W
t=10. #s
l=560. #nm
#calculations
TE=P*t
E1=6.626*math.pow(10,-34) *2.998*math.pow(10,8) /(l*math.pow(10,-9))
N=TE/E1
#results
print '%s %.2e' %("No. of photons required = ",N)
No. of photons required =  2.82e+21

Example E2 - Pg 278

In [2]:
#calculate the wavelength of electrons
#Initialization of variables
import math
V=1000. #V
#calculations
l=6.626*math.pow(10,-34) /math.sqrt(2*9.11*math.pow(10,-31) *1.602*math.pow(10,-19) *V)
#results
print '%s %.2e %s' %("Wavelength of electrons =",l," m")
Wavelength of electrons = 3.88e-11  m

Example E3 - Pg 282

In [2]:
#calculate the no. of times the electron would be more propable at r2 than at r1
#Initialization of variables
import math
r1=0 #multiply by a0
r2=1 #multiply by a0
#calculations
ratio=math.pow(math.e,r1) /math.pow(math.e,(-2.*r2))
#results
print '%s %.2f %s' %("It is more propable that electron would be found",ratio,"times more at r1")
print '%s' %("The answer is a bit different due to rounding off error in textbook")
It is more propable that electron would be found 7.39 times more at r1
The answer is a bit different due to rounding off error in textbook

Example E4 - Pg 284

In [4]:
#calculate the uncertainity in position
#Initialization of variables
import math
m=1 #g
v=math.pow(10,-6) #m/s
#calculations
dx=1.054*math.pow(10,-34) /(2*m*math.pow(10,-3) *v)
#results
print '%s %.1e %s' %("Uncertainity in position =",dx," m")
Uncertainity in position = 5.3e-26  m

Example I1 - Pg 271

In [5]:
#calculate the surface temperature
#Initialization of variables
import math
lmax=4.9*math.pow(10,-7) #m
#calculations
T=2.9*math.pow(10,-3) /lmax
#results
print '%s %d %s' %("Surface temperature must be close to",T,"K")
Surface temperature must be close to 5918 K

Example I2 - Pg 290

In [3]:
#calculate the separation between adjacent levels frequency and energy
#Initialization of variables
import math
k=516. #N/m
m=1.67*math.pow(10,-27) #kg
#calculations
v=math.sqrt(k/m) /(2*math.pi)
E=6.624*math.pow(10,-34) *v
#results
print '%s %.2e %s' %("Separation between adjacent levels frequency,",v,"Hz")
print '%s %.2e %s' %("\n Energy =",E,"J")
Separation between adjacent levels frequency, 8.85e+13 Hz

 Energy = 5.86e-20 J