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 /3014/CH2/EX2.28/Ex2_28.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 '3014/CH2/EX2.28/Ex2_28.sce')
-rwxr-xr-x | 3014/CH2/EX2.28/Ex2_28.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3014/CH2/EX2.28/Ex2_28.sce b/3014/CH2/EX2.28/Ex2_28.sce new file mode 100755 index 000000000..bb8cb9c91 --- /dev/null +++ b/3014/CH2/EX2.28/Ex2_28.sce @@ -0,0 +1,13 @@ +clc
+
+//given that
+l = 1 // width of potential well in angstrom
+h = 6.63e-34 // Plank constant
+m = 9.1e-31 // mass of electron in Kg
+printf("Example 2.28")
+for n = 1:3
+ lambda = 2*l/n // Calculation of wavelength
+ E = n^2*h^2/(8*m*(l*1e-10)^2) // Calculation of energy in Joule
+E_eV = E/1.6e-19 // Calculation of energy in eV
+printf("\n For state:%d Energy is %f eV & wavelength is %f angstrom ",n,E_eV,lambda);
+end
|