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 /1172/CH3/EX3.22/Example3_22.sce | |
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 '1172/CH3/EX3.22/Example3_22.sce')
-rwxr-xr-x | 1172/CH3/EX3.22/Example3_22.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/1172/CH3/EX3.22/Example3_22.sce b/1172/CH3/EX3.22/Example3_22.sce new file mode 100755 index 000000000..e9c7d0f74 --- /dev/null +++ b/1172/CH3/EX3.22/Example3_22.sce @@ -0,0 +1,24 @@ +clc
+//Given that
+h = 6.6e-34 // plank's constant
+m_e = 9.1e-31 // mass of electron in kg
+L = 1e-10 // length of box of particle in m
+//Sample Problem 22 page No. 146
+printf("\n # Problem 22 # \n")
+printf("\n Standard formula Used \n E= h^2 * (n_x^2+n_y^2+n_z^2) / (8*m*L^2)")
+sum = 0
+n_y = 1
+ for n_x = 1:3
+
+ for n_z = 1:2
+ sum = n_x+n_y+n_z
+ if sum<6 then
+ E = h^2 * (n_x^2+n_y^2+n_z^2)/ (1.6e-19*8*m_e*L^2) // calculation of energy
+ printf("\n \n E%d%d%d is %f eV. ",n_x,n_y,n_z,E)
+ end
+
+
+
+ end
+ end
+
|