summaryrefslogtreecommitdiff
path: root/2795/CH3/EX3.15/Ex3_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '2795/CH3/EX3.15/Ex3_15.sce')
-rwxr-xr-x2795/CH3/EX3.15/Ex3_15.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2795/CH3/EX3.15/Ex3_15.sce b/2795/CH3/EX3.15/Ex3_15.sce
new file mode 100755
index 000000000..6885cf084
--- /dev/null
+++ b/2795/CH3/EX3.15/Ex3_15.sce
@@ -0,0 +1,11 @@
+// Scilab Code Ex3.15: Page-113 (2013)
+clc; clear
+e = 1.6e-019; // Energy equivalent of 1 eV, J
+c = 2.998e+008; // Speed of light in vacuum, m/s
+h = 6.626e-034; // Planck's constant, Js
+V0 = 35e+003; // Electron acceleration voltage, V
+lambda_min = h*c/(e*V0); // Duane-Hunt rule for wavelength, m
+printf("\nThe minimum wavelength of X-rays = %4.2e m", lambda_min);
+
+// Result
+// The minimum wavelength of X-rays = 3.55e-011 m \ No newline at end of file