diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH15/EX15.15 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1271/CH15/EX15.15')
-rwxr-xr-x | 1271/CH15/EX15.15/15.txt | 5 | ||||
-rwxr-xr-x | 1271/CH15/EX15.15/example15_15.sce | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/1271/CH15/EX15.15/15.txt b/1271/CH15/EX15.15/15.txt new file mode 100755 index 000000000..bb880f3ef --- /dev/null +++ b/1271/CH15/EX15.15/15.txt @@ -0,0 +1,5 @@ + # PROBLEM 15 #
+Standard formula used
+ E = (n^2 * h^2) / (8 * m * L^2))
+
+ Energy difference is 1.805951e-17 J.
diff --git a/1271/CH15/EX15.15/example15_15.sce b/1271/CH15/EX15.15/example15_15.sce new file mode 100755 index 000000000..9746207c0 --- /dev/null +++ b/1271/CH15/EX15.15/example15_15.sce @@ -0,0 +1,17 @@ +clc +// Given that +l = 1e-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 15 on page no. 15.30 +printf("\n # PROBLEM 15 # \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) +d = E_ - E +printf("\n Energy difference is %e J.",d) |