summaryrefslogtreecommitdiff
path: root/1847/CH1/EX1.16/Ch01Ex16.sce
diff options
context:
space:
mode:
Diffstat (limited to '1847/CH1/EX1.16/Ch01Ex16.sce')
-rwxr-xr-x1847/CH1/EX1.16/Ch01Ex16.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1847/CH1/EX1.16/Ch01Ex16.sce b/1847/CH1/EX1.16/Ch01Ex16.sce
new file mode 100755
index 000000000..50d4e378f
--- /dev/null
+++ b/1847/CH1/EX1.16/Ch01Ex16.sce
@@ -0,0 +1,12 @@
+// Scilab Code Ex1.16: 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 = 100; // Accelerating potential for electron, 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 %d volts = %6.4e m", V, lambda);
+
+// Result
+// de-Broglie wavelength of electron accelerated at 100 volts = 1.2231e-10 m