summaryrefslogtreecommitdiff
path: root/1271/CH15/EX15.17
diff options
context:
space:
mode:
Diffstat (limited to '1271/CH15/EX15.17')
-rwxr-xr-x1271/CH15/EX15.17/17.txt7
-rwxr-xr-x1271/CH15/EX15.17/example15_17.sce16
2 files changed, 23 insertions, 0 deletions
diff --git a/1271/CH15/EX15.17/17.txt b/1271/CH15/EX15.17/17.txt
new file mode 100755
index 000000000..5382703e1
--- /dev/null
+++ b/1271/CH15/EX15.17/17.txt
@@ -0,0 +1,7 @@
+ # PROBLEM 17 #
+Standard formula used
+ E = (n^2 * h^2) / (8 * m * L^2))
+
+ Energy of electron -
+ For (n=1) is 9.631736e-19 J.
+ For (n=2) is 3.852695e-18 J.
diff --git a/1271/CH15/EX15.17/example15_17.sce b/1271/CH15/EX15.17/example15_17.sce
new file mode 100755
index 000000000..d431d3aac
--- /dev/null
+++ b/1271/CH15/EX15.17/example15_17.sce
@@ -0,0 +1,16 @@
+clc
+// Given that
+l = 2.5e-10 // width of box in m
+e = 1.6e-19 // charge on an electron in C
+m = 9.1e-31 // mass of electron in kg
+c = 3e8 // speed of light in m/sec
+h = 6.62e-34 // Planck constant in J-sec
+// Sample Problem 17 on page no. 15.30
+printf("\n # PROBLEM 17 # \n")
+printf("Standard formula used \n")
+printf(" E = (n^2 * h^2) / (8 * m * L^2)) \n")
+n = 1 // for n=1
+E = (n^2 * h^2) / (8 * m * l^2)
+n = 2 // for n=2
+E_ = (n^2 * h^2) / (8 * m * l^2)
+printf("\n Energy of electron -\n For (n=1) is %e J.\n For (n=2) is %e J.",E,E_)