From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1271/CH15/EX15.14/14.txt | 7 +++++++ 1271/CH15/EX15.14/example15_14.sce | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 1271/CH15/EX15.14/14.txt create mode 100755 1271/CH15/EX15.14/example15_14.sce (limited to '1271/CH15/EX15.14') diff --git a/1271/CH15/EX15.14/14.txt b/1271/CH15/EX15.14/14.txt new file mode 100755 index 000000000..f9fb1f865 --- /dev/null +++ b/1271/CH15/EX15.14/14.txt @@ -0,0 +1,7 @@ + # PROBLEM 14 # +Standard formula used + E = (n^2 * h^2) / (8 * m * L^2)) + + Energy of electron - + For (n=1) energy is 6.019835e-18 J. + For (n=2) energy is 2.407934e-17 J. diff --git a/1271/CH15/EX15.14/example15_14.sce b/1271/CH15/EX15.14/example15_14.sce new file mode 100755 index 000000000..cb6232c50 --- /dev/null +++ b/1271/CH15/EX15.14/example15_14.sce @@ -0,0 +1,16 @@ +clc +// Given that +delta_x = 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 14 on page no. 15.29 +printf("\n # PROBLEM 14 # \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 * delta_x^2) +n = 2 // for n=2 +E_ = (n^2 * h^2) / (8 * m * delta_x^2) +printf("\n Energy of electron - \n For (n=1) energy is %e J.\n For (n=2) energy is %e J.",E,E_) -- cgit