# Chapter 6 - valence electrons in molecules¶

## Example 1 - pg 150¶

In [1]:
#calculate the wave function
#initialization of variables
import math
from math import sqrt
a2=1/8.
#calculations
b2=1-a2
a1=sqrt(a2)
b1=sqrt(b2)
#results
print '%s %.2f %s %.2f %s' %(" Wave function is",a1, "phi1 +",b1,"phi2")

 Wave function is 0.35 phi1 + 0.94 phi2


## Example 3 - pg 156¶

In [2]:
#calculate the Bond angle
#initialization of variables
import math
sinu=2/math.sqrt(3.)
cosu=math.sqrt(2/3.)
#calculations
tanu=sinu/cosu
u=math.atan(sinu/cosu) *180/math.pi
#results
print '%s %.2f %s' %("Bond angle =",2*u,"degrees")

Bond angle = 109.47 degrees


# Example 4 - pg 156¶

In [3]:
#calculate the Pauling strength
#initialization of variables
import math
cosu=1/math.sqrt(3.)
sinu=math.sqrt(2./3)
#calculations
f=1/2. + math.sqrt(3.) /2. *cosu + math.sqrt(3./2) *sinu
#results
print ' %s %d' %("Pauling strength = ",f)

 Pauling strength =  2


## Example 5 - pg 157¶

In [4]:
#calculate the Wave function
#initialization of variables
import math
alpha=60.*math.pi/180.
#calculations
cosa=math.cos(alpha)
sina=math.sin(alpha)
#results
print '%s %.2f %s %.2f %s' %("Wave function  =",cosa,"s +",sina,"pz")

Wave function  = 0.50 s + 0.87 pz


## Example 9 - pg 169¶

In [5]:
#calculate the Bond energy
#initialization of variables
DHH=103. #kcal/mol
#calculations
DHHp=0.5*(DHH)
#results
print '%s %.1f %s' %("Bond energy =",DHHp,"kcal/mol")

Bond energy = 51.5 kcal/mol


## Example 10 - pg 174¶

In [6]:
#calculate the Exchange energy
#initialization of variables
DHH=42 #kcal/mol
#calculations
DHHp=0.5*(DHH)
#results
print '%s %.1f %s' %("Exchange energy =",DHHp,"kcal/mol")

Exchange energy = 21.0 kcal/mol