summaryrefslogtreecommitdiff
path: root/572/CH14/EX14.3/c14_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '572/CH14/EX14.3/c14_3.sce')
-rwxr-xr-x572/CH14/EX14.3/c14_3.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/572/CH14/EX14.3/c14_3.sce b/572/CH14/EX14.3/c14_3.sce
new file mode 100755
index 000000000..0513f4d3c
--- /dev/null
+++ b/572/CH14/EX14.3/c14_3.sce
@@ -0,0 +1,16 @@
+//(14.3) Measurements show that at a temperature T and a pressure of 1 atm, the equilibrium mixture for the system of Example 14.2 has the composition yCO = 0.298,yO2 = .149, yCO2 = .553.Determine the temperature T of the mixture, in K.
+
+
+//solution
+yCO = .298
+//solving yCO = 2z/(2 + z)
+z = 2*yCO/(2 - yCO)
+
+p = 1 //in atm
+pref = 1 //in atm
+
+K = (z/(1-z))*(z/(2 + z))^.5*(p/pref)^.5
+
+//with this value of K, table A-27 gives
+T = 2881
+printf('the temperature T of the mixture in kelvin is: %f',T)