Chapter 12: Molecules

Example 12.1, Page 417

In [1]:
#Variable declaration
c=9*10**9
cm=1.6*10**-19
d=2.4*10**-10#in m

#Calculations
v=(c*cm*cm)/d
e=-v/(1.6*10**-19)#in J

#Result
print "The energy is  %.f eV"%e
The energy is  -6 eV

Example 12.3, Page 427

In [2]:
import math

#Variable declaration
h=6.63*10**-34#in J-s

#Calculations&Results
I=(2*math.pi)**2*2.66*10**-47#in kg-m2
m_H=1./(6.02*10**26)#in kg
E=(h**2)/I
print "The energy is  %.1e  J"%E
s=.59*10**-19#in J
k=1.38*10**-23#in j/k
T=(s)/k
print "The temperature is  %.f  K"%T
#Answer diffrence is because of round off
The energy is  4.2e-22  J
The temperature is  4275  K