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 /3020/CH14/EX14.5/ex14_5.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 '3020/CH14/EX14.5/ex14_5.sce')
-rwxr-xr-x | 3020/CH14/EX14.5/ex14_5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3020/CH14/EX14.5/ex14_5.sce b/3020/CH14/EX14.5/ex14_5.sce new file mode 100755 index 000000000..bce38fcaf --- /dev/null +++ b/3020/CH14/EX14.5/ex14_5.sce @@ -0,0 +1,13 @@ +clc;
+clear all;
+k = 1.38e-23; //Boltzmann constant
+h = 6.62e-34; // Planck's constant
+m = 9.1e-31; // Mass of an electron in Kg
+L = 0.1e-9 ; // Length of potential wall in meters
+nx = 1; // For the lowest energy level
+ny = 1; //
+nz = 2; // The higher energy level
+E = (h^2*(nx^2+ny^2+nz^2))/(8*m*L^2);//Energy of electron in (1 1 2) state
+disp('J',E,'Energy of electron in (1 1 2) state is')
+T = (E*2)/(3*k); // Temperature of the system
+disp('K',T,'Temperature of the system is')
|