summaryrefslogtreecommitdiff
path: root/1019/CH6/EX6.6/Example_6_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '1019/CH6/EX6.6/Example_6_6.sce')
-rw-r--r--1019/CH6/EX6.6/Example_6_6.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1019/CH6/EX6.6/Example_6_6.sce b/1019/CH6/EX6.6/Example_6_6.sce
new file mode 100644
index 000000000..19903ccaa
--- /dev/null
+++ b/1019/CH6/EX6.6/Example_6_6.sce
@@ -0,0 +1,16 @@
+//Example 6.6
+clear;
+clc;
+
+//Given
+delHfus=6.0;//heatoffusion of water in kJ mol^-1
+T=298;//temperature in K
+k=1.38*(10^(-23));//in J K^-1
+N=10;//number of molecules
+
+//To calculate the probabilty that 10 molecules will be found in half of the container
+delS=N*k*log(0.5);//entropy change in J mol^-1 K^-1
+w=delS/(2.303*k);//w=log10(W)
+W=10^(w);//probabilty that 10 molecules will be found in half of the container
+mprintf('probabilty that 10 molecules will be found in half of the container = %f',W);
+//end \ No newline at end of file