summaryrefslogtreecommitdiff
path: root/1271/CH15/EX15.18/example15_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '1271/CH15/EX15.18/example15_18.sce')
-rwxr-xr-x1271/CH15/EX15.18/example15_18.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1271/CH15/EX15.18/example15_18.sce b/1271/CH15/EX15.18/example15_18.sce
new file mode 100755
index 000000000..2770faa06
--- /dev/null
+++ b/1271/CH15/EX15.18/example15_18.sce
@@ -0,0 +1,14 @@
+clc
+// Given that
+l = 1e-14 // width of box in m
+e = 1.6e-19 // charge on an electron in C
+m = 1.67e-27 // mass of neutron in kg
+c = 3e8 // speed of light in m/sec
+h = 6.62e-34 // Planck constant in J-sec
+// Sample Problem 18 on page no. 15.31
+printf("\n # PROBLEM 18 # \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)
+printf("\n Lowest energy of neutron confined in the nucleus is %e J.",E)