import math
from __future__ import division
#initialisation of variables
H= 540 #cal per gram
m= 9 #gms
T= 100 #C
#CALCULATIONS
S= H*m/(273+T)
#RESULTS
print"Entropy change =",round(S,2),"E.U";
import math
from __future__ import division
#initialisation of variables
m= 9 #gms
H= 79.7 #cal per gram
T= 0 #C
#CALCULATIONS
S= m*H/(273+T)
#RESULTS
print"Entropy change =",round(S,2),"E.U";
import math
from __future__ import division
#initialisation of variables
m= 14 #gms
M= 28 #gms
R= 1.99 # cal per mole per degree
V= 30 #lit
v1= 10 #lit
#CALCULATIONS
S1= (m/M)*R*2.303*math.log10(V/v1)
#RESULTS
print"Entropy change =",round(S1,2),"E.U";
import math
from __future__ import division
#initialisation of variables
m= 14 #gms
M= 28 #gms
S= 6.94 #cal per mole
T= 127 #C
T1= 27 #C
S1= 4.94 #cal per mole
#CALCULATIONS
dS= (m/M)*S*math.log((273+T)/(273+T1))
dS1= (m/M)*S1*math.log((273+T)/(273+T1))
#RESULTS
print"Entropy change =",round(dS-0.01,2),"E.U";
print"Entropy change =",round(dS1,2),"E.U";
import math
from __future__ import division
#initialisation of variables
Scl= 53.29 #E.U
Sag= 10.21 #E.U
Sagcl= 22.97 #E.U
#CALCULATIONS
dS= Sagcl-Sag-0.5*Scl
#RESULTS
print"Entropy change =",round(dS,2),"E.U";
import math
from __future__ import division
#initialisation of variables
Scl= 13.17 #E.U
Sag= 17.67 #E.U
Sagcl= 22.97 #E.U
#CALCULATIONS
dS= Scl+Sag-Sagcl
#RESULTS
print"Entropy change =",round(dS,2),"E.U";
import math
from __future__ import division
#initialisation of variables
F1= -94260 #cal
F2= -56690 #cal
F3= -7860 #cal
#CALCULATIONS
F= 2*F1+3*F2-F3
#RESULTS
print"value of dF =",round(F,2);
import math
from __future__ import division
#initialisation of variables
T= 25 #C
F1= -35180 #cal
#CALCULATIONS
F= F1
#RESULTS
print"value of dF =",round(F,2);
import math
from __future__ import division
#initialisation of variables
F= -51180 #cal
T= 25 #C
R= 1.99 #cal/mole K
#CALCULATIONS
K= 10**(-F/(R*(273+T)*2.303))
#RESULTS
print"equilibrium constant =",'%.2E'%K;
import math
from __future__ import division
#initialisation of variables
F= 18430 #cal
F1= -31350 #cal
F2= 26224 #cal
R= 1.99 #cal/mole K
T= 25 #C
#CALCULATIONS
F3= F+F1+F2
Ksp= 10**(-F3/(R*(273+T)*2.303))
#RESULTS
print"solubility product =",'%.2E'%Ksp;
import math
from __future__ import division
#initialisation of variables
F= -51108 #cal
f= 96500 #coloumbs
n= 2 #moles
#CALCULATIONS
E= -F*4.184/(n*f)
#RESULTS
print"value of E =",round(E,2),"v";
import math
from __future__ import division
#initialisation of variables
F1= 31350 #cal
F2= 26224 #cal
F= 96500 #coloumbs
#CALCULATIONS
F3= -F1+F2
E= F3*4.184/F
#RESULTS
print"value of E =",round(E,4),"cal";
import math
from __future__ import division
#initialisation of variables
T= 25 #C
a= 0.2 #molar
P= 1 #atm
F1= -5126 #cal
R= 2 #cal/mole K
#CALCULATIONS
F= F1+R*(273+T)*2.303*math.log10(a**2)
#RESULTS
print"value of F =",round(F),"cal";
import math
from __future__ import division
#initialisation of variables
T= 25 #C
F= 1160 #cal
P= 0.1 #atm
P1= 1 #atm
R= 2 #cal/mole K
#CALCULATIONS
F1= F+R*(273+T)*math.log(P/P1**2)
F2= F+R*(273+T)*math.log(P1/P**2)
#RESULTS
print"value of F =",round(F1),"cal";
print"value of F =",round(F2),"cal";
import math
from __future__ import division
#initialisation of variables
T= 25 #C
H= -94.05 #kcal
H1= -26.42 #kcal
S= 51.06 #cal per degree
S1= -47.3 #cal per degree
S2= -24.5 #cal per degree
#CALCULATIONS
dH= (H-H1)*1000
dS= S+S1+S2
F= dH-(273+T)*dS
#RESULTS
print"value of F =",round(F),"cal";