diff options
Diffstat (limited to '1847/CH1/EX1.8')
-rwxr-xr-x | 1847/CH1/EX1.8/Ch01Ex8.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1847/CH1/EX1.8/Ch01Ex8.sce b/1847/CH1/EX1.8/Ch01Ex8.sce new file mode 100755 index 000000000..c702c2805 --- /dev/null +++ b/1847/CH1/EX1.8/Ch01Ex8.sce @@ -0,0 +1,14 @@ +// Scilab Code Ex1.8: Page-1.7 (2009)
+clc; clear;
+m = 9.1e-031; // Mass of the electron, kg
+e = 1.6e-019; // Energy equivalent of 1 eV, J/eV
+h = 6.626e-034; // Planck's constant, Js
+E = 5*e; // Energy of the electron, J
+// As 1/2*m*v^2 = E, solving for v
+v = sqrt(2*E/m); // Velocity of the electron, m/s
+lambda = h/(m*v); // de Broglie wavelength of the electron, m
+printf("\nThe de Broglie wavelength of the electron = %3.1f angstrom", lambda/1e-010);
+
+// Result
+// The de Broglie wavelength of the electron = 5.5 angstrom
+
|