summaryrefslogtreecommitdiff
path: root/3689/CH15/EX15.3/15_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3689/CH15/EX15.3/15_3.sce')
-rw-r--r--3689/CH15/EX15.3/15_3.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3689/CH15/EX15.3/15_3.sce b/3689/CH15/EX15.3/15_3.sce
new file mode 100644
index 000000000..f68112e12
--- /dev/null
+++ b/3689/CH15/EX15.3/15_3.sce
@@ -0,0 +1,24 @@
+////
+//Variable Declaration
+g0 = 3.0
+labda = 1263e-9 //Wave length in nm
+T = 500. //Temperature, K
+c = 3.00e8 //Speed of light, m/s
+NA = 6.022e23 //Avagadro's Number, 1/mol
+k = 1.38e-23 //Boltzmann constant, J/K
+n = 1.0 //Number of moles, mol
+h = 6.626e-34 //Planks's Constant, J.s
+
+//Calcualtions
+beta = 1/(k*T)
+eps = h*c/labda
+qE = g0 + exp(-beta*eps)
+UE = n*NA*eps*exp(-beta*eps)/qE
+
+//Results
+printf("\n Energy of excited state is %4.2e J",eps)
+
+printf("\n Electronic partition function qE is %4.3e",qE)
+
+printf("\n Electronic contribution to internal enrgy is %4.3e J",UE)
+