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 /2453/CH3/EX3.6 | |
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 '2453/CH3/EX3.6')
-rwxr-xr-x | 2453/CH3/EX3.6/3_6.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2453/CH3/EX3.6/3_6.sce b/2453/CH3/EX3.6/3_6.sce new file mode 100755 index 000000000..4d8fd1a04 --- /dev/null +++ b/2453/CH3/EX3.6/3_6.sce @@ -0,0 +1,12 @@ +//To calculate the lowest energy of an electron
+n1 = 1;
+n2 = 1;
+n3 = 1; //for lowest energy
+e = 1.6*10^-19;
+h = 6.62*10^-34; //planck's constant
+m = 9.1*10^-31; //mass of electron, kg
+L = 0.1; //side of box, nm
+L = L*10^-9; //side of box, m
+E1 = h^2*(n1^2+n2^2+n3^2)/(8*m*L^2); //lowest energy, J
+E1 = E1/e; //lowest energy, eV
+printf("lowest energy of electron is %5.1f eV",E1);
|