summaryrefslogtreecommitdiff
path: root/944/CH7/EX7.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /944/CH7/EX7.6
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '944/CH7/EX7.6')
-rwxr-xr-x944/CH7/EX7.6/example7_6_TACC.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/944/CH7/EX7.6/example7_6_TACC.sce b/944/CH7/EX7.6/example7_6_TACC.sce
new file mode 100755
index 000000000..70a4601a4
--- /dev/null
+++ b/944/CH7/EX7.6/example7_6_TACC.sce
@@ -0,0 +1,28 @@
+//example 7.6
+
+clear;
+clc;
+
+
+//section(1)
+//Given:
+//The energy levels are not degenerate
+w=1;//no. of ways of distributing the molecules
+k=1.381*10^-23;//Boltzmann constant[J/K]
+//To find the entropy of the system
+S1=k*log(w);//Entropy of system at 0K
+printf("The Entropy of System at 0K and non-degenerate eng level is %f J/K/mol",S1);
+
+//section(2)
+//Here the energy levels are degenerate
+n=2;
+R=8.314;//Universal gas constant[J/K/mol]
+
+//To find the entropy of the system
+//S=klog(n^N)=>S=R*log(n)
+S2=R*log(n);//Entropy of the system[J/K/mol]
+printf("\nThe Entropy of system at 0K and degenerete eng level is %f J/K/mol",S2);
+
+
+
+