summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.16/18_16.sce
blob: 0e1b7a81adabbf067612e4c496fe9a8bb2b9f242 (plain)
1
2
3
4
5
6
7
8
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);