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 /2258/CH1/EX1.20 | |
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 '2258/CH1/EX1.20')
-rwxr-xr-x | 2258/CH1/EX1.20/1_20.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2258/CH1/EX1.20/1_20.sce b/2258/CH1/EX1.20/1_20.sce new file mode 100755 index 000000000..678faefbf --- /dev/null +++ b/2258/CH1/EX1.20/1_20.sce @@ -0,0 +1,26 @@ +clc();
+clear;
+// To calculate the energies of electron
+n2=2; //second quantum state
+n4=4; //fourth quantum state
+h=6.626*10^-34;
+m=9.1*10^-31; //mass in kg
+a=2; //potential box length in armstrong
+a=a*10^-10; //length in m
+A=n2^2*h^2;
+B=8*m*a^2;
+E2=A/B; //energy in j
+E2eV=E2/(1.6*10^-19); //energy in eV
+C=n4^2*h^2;
+E4=C/B; //energy in j
+E4eV=E4/(1.6*10^-19); //energy in eV
+printf("energy corresponding to second quantum state in Joule is");
+disp(E2);
+printf("energy corresponding to second quantum state in eV is");
+disp(E2eV);
+printf("energy corresponding to fourth quantum state in Joule is");
+disp(E4);
+printf("energy corresponding to fourth quantum state in eV is");
+disp(E4eV);
+
+//answers given in the book are wrong
|