summaryrefslogtreecommitdiff
path: root/3689/CH15/EX15.3
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3689/CH15/EX15.3
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3689/CH15/EX15.3')
-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)
+