summaryrefslogtreecommitdiff
path: root/3856/CH23/EX23.2/Ex23_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3856/CH23/EX23.2/Ex23_2.sce')
-rw-r--r--3856/CH23/EX23.2/Ex23_2.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3856/CH23/EX23.2/Ex23_2.sce b/3856/CH23/EX23.2/Ex23_2.sce
new file mode 100644
index 000000000..33c10a6a3
--- /dev/null
+++ b/3856/CH23/EX23.2/Ex23_2.sce
@@ -0,0 +1,21 @@
+//Calculate the Translational Partition function of a Helium atom
+
+//Example 23.2
+
+clc;
+
+clear;
+
+m=4.003*1.661*10^-27; //Mass of Helium atom in kg amu^-1
+
+KB=1.381*10^-23; //Boltzmann's constant in J K^-1
+
+T=298; //Temperature in K
+
+h=6.626*10^-34; //Planck's constant in J s
+
+V=1; //Volume of container in m^3
+
+Qtrans=(((2*%pi*m*KB*T)^(3/2))*V)/h^3; //Translational Partition function of a Helium atom (1 J=1 kg m^2 s^-2)
+
+printf("Translational Partition function of a Helium atom = %.2f*10^30",Qtrans*10^-30);