summaryrefslogtreecommitdiff
path: root/944/CH5/EX5.20/example5_20_TACC.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /944/CH5/EX5.20/example5_20_TACC.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '944/CH5/EX5.20/example5_20_TACC.sce')
-rwxr-xr-x944/CH5/EX5.20/example5_20_TACC.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/944/CH5/EX5.20/example5_20_TACC.sce b/944/CH5/EX5.20/example5_20_TACC.sce
new file mode 100755
index 000000000..79a2b8b6a
--- /dev/null
+++ b/944/CH5/EX5.20/example5_20_TACC.sce
@@ -0,0 +1,17 @@
+//example 5.20
+
+clear;
+clc;
+
+disp("2H2(g)+O2(g)-->2H2O(l)");
+//Given:
+Hf1=-285.83;//standard enthalpy of formation of H2O(l)[KJ/mol]
+S=-327;//Standard entropy change for the same reaction[J/K]
+T=298;//temperature[K]
+
+
+//To find the spontanity of the reaction
+H=2*Hf1-0-0;//Enthalpy of the reaction[KJ/mol]
+G=H-T*S*0.001;//Change in Gibbs free energy[KJ]
+printf("The change in Gibbs free energy is %f KJ\n ",G);
+disp("As change in Gibbs free energy is negative.Therefore,the reaction is spontaneous")