summaryrefslogtreecommitdiff
path: root/1646/CH2/EX2.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1646/CH2/EX2.12
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 '1646/CH2/EX2.12')
-rwxr-xr-x1646/CH2/EX2.12/Ch02Ex12.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1646/CH2/EX2.12/Ch02Ex12.sce b/1646/CH2/EX2.12/Ch02Ex12.sce
new file mode 100755
index 000000000..bfe604116
--- /dev/null
+++ b/1646/CH2/EX2.12/Ch02Ex12.sce
@@ -0,0 +1,15 @@
+// Scilab Code Ex2.12: Page:83 (2011)
+clc;clear;
+m0 = 9.1e-31;....// Rest mass, kg
+a = 1e-10;....// Length of the box, m
+h = 6.62e-34;....// Planck's constat, J-s
+n1 = 1;....// Ground state
+n2 = 2;....// First excited state
+e = 1.6e-19;....// Charge on electron, C
+E1 = (n1^2*h^2)/(8*m0*a^2*e);
+E2 = (n2^2*h^2)/(8*m0*a^2*e);
+del_E = E2-E1;
+printf("\nThe energy difference between the ground state and the first excited state = %5.1f eV",del_E);
+
+//Result
+// The energy difference between the ground state and the first excited state = 112.9 eV