summaryrefslogtreecommitdiff
path: root/647/CH12/EX12.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /647/CH12/EX12.4
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 '647/CH12/EX12.4')
-rwxr-xr-x647/CH12/EX12.4/Example12_4.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/647/CH12/EX12.4/Example12_4.sce b/647/CH12/EX12.4/Example12_4.sce
new file mode 100755
index 000000000..bfaa2cfca
--- /dev/null
+++ b/647/CH12/EX12.4/Example12_4.sce
@@ -0,0 +1,24 @@
+clear;
+clc;
+
+// Example: 12.4
+// Page: 479
+
+printf("Example: 12.4 - Page: 479\n\n");
+
+// Solution
+
+//*****Data******//
+// H2O(l) = H2O(g)
+deltaH = 9710;// [cal]
+deltaS = 26;// [e.u.]
+Temp = 27 + 273;// [K]
+P = 1;// [atm]
+//**************//
+
+deltaG = deltaH - Temp*deltaS;// [cal]
+if deltaG > 0
+ printf("Vaporisation of liquid water is not spontaneous\n");
+else
+ printf("Vaporisation of liquid water is spontaneous")
+end \ No newline at end of file