summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.26/18_26.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH18/EX18.26/18_26.sce')
-rw-r--r--1427/CH18/EX18.26/18_26.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1427/CH18/EX18.26/18_26.sce b/1427/CH18/EX18.26/18_26.sce
new file mode 100644
index 000000000..871b9b48a
--- /dev/null
+++ b/1427/CH18/EX18.26/18_26.sce
@@ -0,0 +1,12 @@
+//ques-18.26
+//Calculating free energy change at 298 K
+clc
+T=298;//temperature (in K)
+S=-10.5;//entropy change (in cal/K)
+U=-2500;//internal energy change (in cal/K)
+R=1.987;//cal/mol/K
+n=2-(2+1);//difference in moles of gases
+//G=H-T*S
+//H=U+n*R*T
+G=U+n*R*T-T*S;//free energy change
+printf("The free energy change is %.0f cal.",G);