diff options
Diffstat (limited to '3014/CH2/EX2.28')
-rwxr-xr-x | 3014/CH2/EX2.28/Ex2_28.sce | 13 | ||||
-rwxr-xr-x | 3014/CH2/EX2.28/Ex2_28.txt | 6 |
2 files changed, 19 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
diff --git a/3014/CH2/EX2.28/Ex2_28.txt b/3014/CH2/EX2.28/Ex2_28.txt new file mode 100755 index 000000000..de22674c0 --- /dev/null +++ b/3014/CH2/EX2.28/Ex2_28.txt @@ -0,0 +1,6 @@ +
+
+Example 2.28
+ For state:1 Energy is 37.737723 eV & wavelength is 2.000000 angstrom
+ For state:2 Energy is 150.950893 eV & wavelength is 1.000000 angstrom
+ For state:3 Energy is 339.639509 eV & wavelength is 0.666667 angstrom
\ No newline at end of file |