diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /647/CH5/EX5.12/Example5_12.sce | |
download | Scilab-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/CH5/EX5.12/Example5_12.sce')
-rwxr-xr-x | 647/CH5/EX5.12/Example5_12.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/647/CH5/EX5.12/Example5_12.sce b/647/CH5/EX5.12/Example5_12.sce new file mode 100755 index 000000000..7c49e3740 --- /dev/null +++ b/647/CH5/EX5.12/Example5_12.sce @@ -0,0 +1,22 @@ +clear;
+clc;
+
+// Example: 5.12
+// Page: 167
+
+printf("Example: 5.12 - Page: 167\n\n");
+
+// Solution
+
+//*****Data*****//
+Vol_O2 = 5.6;// [L]
+Vol_H2 = 16.8;// [L]
+R = 1.987;// [cal/mol K]
+//*************//
+
+xA = Vol_O2/22.4;// [mole fraction O2]
+xB = Vol_H2/22.4;// [mle fraaction H2]
+N = xA + xB;// [total number of moles]
+// From Eqn. 5.21:
+deltaS = - (N*R*(xA*log(xA) + xB*log(xB)));// [cal/K]
+printf("Change in Entropy is %.3f cal/K",deltaS);
\ No newline at end of file |