summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.27/18_27.sce
blob: 170c55eebcc315be8e92d8ad8ef021e84eb215e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
//ques-18.27
//Finding partial pressure of hydrogen at which free energy change is zero
clc
G=-10.1;//free energy change (in kJ/mol)
T=500;//temperature (in K)
p1=10;//partial pressure of HI (in atm)
p2=0.001;//partial pressure of I2 (in atm)
//On solving, log10(K) = (-G)/(2.303*8.314*T)
K=11.36;
p3=(p1/(K*sqrt(p2)))^2;
printf("The partial pressure of hydrogen is %.0f atm.",p3);