diff options
Diffstat (limited to '1922/CH9/EX9.2/9_2.sce')
-rwxr-xr-x | 1922/CH9/EX9.2/9_2.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1922/CH9/EX9.2/9_2.sce b/1922/CH9/EX9.2/9_2.sce new file mode 100755 index 000000000..057d564cf --- /dev/null +++ b/1922/CH9/EX9.2/9_2.sce @@ -0,0 +1,16 @@ +clc
+clear
+//Initialization of variables
+g1=150670 //kJ/kmol
+g2=71500 //kJ/kmol
+R=8.314
+Ts=298 //K
+T=700 //K
+//calculationd
+G=g1-g2
+G2=33875 //kJ/kmol
+K1=exp(-G/R/Ts)
+K2=exp(-G2/R/T)
+//results
+printf("In case 1, equilibrium constant = %.2e",K1)
+printf("\n In case 2, equilibrium constant = %.5f",K2)
|