diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3755/CH6/EX6.34 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3755/CH6/EX6.34')
-rw-r--r-- | 3755/CH6/EX6.34/Ex6_34.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3755/CH6/EX6.34/Ex6_34.sce b/3755/CH6/EX6.34/Ex6_34.sce new file mode 100644 index 000000000..a92b65fb6 --- /dev/null +++ b/3755/CH6/EX6.34/Ex6_34.sce @@ -0,0 +1,23 @@ +clear
+//
+//
+//
+
+//Variable declaration
+h=6.626*10^-34; //planck's constant(J-sec)
+e=1.60*10^-19; //charge of electron(c)
+L=10^-10; //width(m)
+m=9.1*10^-31; //mass of electron(kg)
+n1=1;
+n2=2;
+
+//Calculations
+E=h^2/(8*m*e*L^2); //energy(eV)
+E1=n1^2*h^2/(8*m*e*L^2); //1st least energy(eV)
+E2=n2^2*h^2/(8*m*e*L^2); //2nd least energy(eV)
+Ed=E2-E1
+//Result
+printf("\n 1st least energy is %0.2f eV",E1)
+printf("\n 2nd least energy is %0.0f eV",E2)
+printf("\n energy difference between ground state and 1st excited state is %0.2f eV",Ed)
+printf("\n answer in the book varies due to rounding off errors")
|