diff options
Diffstat (limited to '1427/CH18/EX18.16/18_16.sce')
-rw-r--r-- | 1427/CH18/EX18.16/18_16.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/1427/CH18/EX18.16/18_16.sce b/1427/CH18/EX18.16/18_16.sce new file mode 100644 index 000000000..0e1b7a81a --- /dev/null +++ b/1427/CH18/EX18.16/18_16.sce @@ -0,0 +1,9 @@ +//ques-18.16
+//Calculating increase in entropy
+clc
+v1=2.8;//volume of O2 (in L)
+v2=19.6;//volume of H2 (in L)
+n1=v1/22.4; n2=v2/22.4;//(in moles)
+x1=n1/(n1+n2); x2=n2/(n1+n2);
+S=-8.314*2.303*(x1*log10(x1)+x2*log10(x2));
+printf("The increase in entropy is %.3f J/K.",S);
|