summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.15/18_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH18/EX18.15/18_15.sce')
-rw-r--r--1427/CH18/EX18.15/18_15.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1427/CH18/EX18.15/18_15.sce b/1427/CH18/EX18.15/18_15.sce
new file mode 100644
index 000000000..4d9e8eaf3
--- /dev/null
+++ b/1427/CH18/EX18.15/18_15.sce
@@ -0,0 +1,9 @@
+//ques-18.15
+//Calculating entropy of mixing per mole of the mixture
+clc
+n1=1;//mole sof hydrogen
+n2=9;//moles of nitrogen
+x1=n1/(n1+n2);
+x2=n2/(n1+n2);
+S=-8.314*2.303*(x1*log10(x1)+x2*log10(x2));//entropy of mixing
+printf("The entropy of mixing is %.3f J/K/mol.",S);