From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 647/CH5/EX5.12/Example5_12.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 647/CH5/EX5.12/Example5_12.sce (limited to '647/CH5/EX5.12') 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 -- cgit