import math
#initialisation of variables
E= -1148.93 #in kcal moleˆ−1
R= 1.987 #cal moleˆ−1 Kˆ−1
T= 25 #in Celsius
n=4
#CALCULATIONS
E1= (E*1000-R*n*(273.1+T))/1000
#RESULTS
E1=round(E1,2)
print 'heat absorbed=',E1,'kcal moleˆ−1'
import math
#given
Hr1= -71.03 #in kcal
Hr2= 70.96 #in kcal
#CALCULATIONS
H= Hr1+Hr2
#RESULTS
print 'Enthalpy of transition=',H,'kcal'
import math
#initialisation of variables
Hr1= -70.96 #in kcal
Hr2= -23.49 #in kcal
Hr3= -31.14 #in kcal
Hr4= -68.32 #in kcal
#CALCULATIONS
H= Hr1+Hr2+Hr3+Hr4
#RESULTS
print 'Enthalpy of formation=',H,'kcal'
import math
#intialisation of variables
dH= -310.615 #in kcal
HfCO2= -94.52 #in kcal
HfH2O= -68.3174 #kcal
#CALCULATIONS
HfCH2= -dH+2*HfCO2+HfH2O
#RESULTS
HfCH2=round(HfCH2,2)
print 'Enthalpy of formation of acetylene=',HfCH2,'kcal moleˆ−1'
import math
#initialisation of variables
dH= -687.982 #in kcal
HCO2= -94.0518 #in kcal
#CALCULATIONS
H= -dH+4*HCO2+5*HCO2
#RESULTS
H=round(H,3)
print 'Enthalpy of formation of n butane=',H,'kcal moleˆ−1'
import math
#initialisation of variables
HfAlO2= -399.1 #in kcal
HfFe2O2= -196.5 #in kcal
#CALCULATIONS
dH= HfAlO2 -HfFe2O2
#RESULTS
print 'Enthalpy change=',dH,'kcal moleˆ−1'
import math
#initialisation of variables
Hr= -17.74 #in kcal
Hr1= 15.31 #in kcal
#CALCULATIONS
dH= Hr+Hr1
#RESULTS
print 'integral heat of dilution=',dH,'kcal'
import math
#initialisation of variables
dHr= -0.56 #in kcal
dHr1= -18.85 #in kcal
#CALCULATIONS
dH= dHr+dHr1
#RESULTS
print 'integral heat of hydration=',dH,'kcal'
import math
#initialisation of variables
HfHcl= -22.063 #in kcal
H298= -17.74 #in kcal
#CALCULATIONS
HfHcl200H2O= HfHcl+H298
#RESULTS
print 'enthalpy of formation=',HfHcl200H2O,'kcal moleˆ−1'
import math
#initialisation of variables
HNaCl= -97.219 #in kcal
HH2O= -68.3174 #in kcal
HHcl= -39.713 #in kcal
HNaOH= -112.108 #in kcal
#CALCULATIONS
H298= HNaCl+HH2O -HHcl -HNaOH
#RESULTS
H298=round(H298,2)
print 'dH298=',H298,'kcal'
import math
#initialisation of variables
T1=1000 #in K
T2=300 #in K
k1=6.0954 #in cal degˆ−1 moleˆ−1
k2=3.2533*10**-3 #in cal degˆ−2 moleˆ−1
k3=-1.071*10**-6 #in cal degˆ−3 moleˆ−1
#CALCULATIONS
dH=k1*(T1-T2)+(k2*(T1**2-T2**2)/2)+(k3*(T1**3-T2**3)/3)
#RESULTS
dH=round(dH,2)
print 'dH=',dH,'cal moleˆ−1'
import math
#initialisation of variables
dH273=-79.7 #in cal gˆ−1
T1=263 #in K
T2=273 #in K
dCp=-0.51 #in cal moleˆ−1 degˆ−1
#CALCULATIONS
H263=dH273+dCp*(T1-T2)
#RESULTS
print 'H263=',H263,'cal gˆ−1'
import math
#initialisation of variables
dH293=-115595.8 #in cal
T1=1500 #in K
T2=298 #in K
k1=-5.6146 #cal degˆ−1 moleˆ−1
k2=1.8931*10**-3 #cal degˆ−2 moleˆ−1
k3=4.723*10**-7 #cal degˆ−3 moleˆ−1
#CALCULATIONS
dH=dH293+ k1*(T1-T2)+(k2*(T1**2-T2**2)/2)+(k3*(T1**3-T2**3)/3)
#RESULTS
dH=round(dH,2)
print 'dH=',dH,'cal'