summaryrefslogtreecommitdiff
path: root/1847/CH1/EX1.15/Ch01Ex15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1847/CH1/EX1.15/Ch01Ex15.sce')
-rwxr-xr-x1847/CH1/EX1.15/Ch01Ex15.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1847/CH1/EX1.15/Ch01Ex15.sce b/1847/CH1/EX1.15/Ch01Ex15.sce
new file mode 100755
index 000000000..d676919e5
--- /dev/null
+++ b/1847/CH1/EX1.15/Ch01Ex15.sce
@@ -0,0 +1,12 @@
+// Scilab Code Ex1.15: Page-1.18 (2009)
+clc; clear;
+h = 6.6e-034; // Planck's constant
+m = 9.1e-031; // Mass of a electron, kg
+e = 1.6e-019; // Electronic charge, C
+V = 1; // For simplicity the accelerating potential is assumed to be unity, V
+E = e*V; // Energy of the electron, J
+lambda = h/sqrt(2*m*E); // de-Broglie wavelength of electron, m
+printf("\nde-Broglie wavelength of electron accelerated at V volts = %5.2f/sqrt(V) angstrom", lambda/1e-010);
+
+// Result
+// de-Broglie wavelength of electron accelerated at V volts = 12.23/sqrt(V) angstrom