summaryrefslogtreecommitdiff
path: root/1004/CH6/EX6.5/Ch06Ex5.sci
diff options
context:
space:
mode:
Diffstat (limited to '1004/CH6/EX6.5/Ch06Ex5.sci')
-rwxr-xr-x1004/CH6/EX6.5/Ch06Ex5.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/1004/CH6/EX6.5/Ch06Ex5.sci b/1004/CH6/EX6.5/Ch06Ex5.sci
new file mode 100755
index 000000000..2c7df6214
--- /dev/null
+++ b/1004/CH6/EX6.5/Ch06Ex5.sci
@@ -0,0 +1,11 @@
+// Scilab code: Ex6.5 : Minimum voltage of an X-ray tube : Pg: 157 (2008)
+h = 6.625e-034; // Planck's constant, Js
+c = 3e+08; // Velocity of light, m/s
+e = 1.6e-019; // Charge of an electron, coulombs
+L = 1e-010; // Wavelength of X-rays, m
+// Since e*V = h*c/L; // Energy required by an electron to move through a potential barrier of one volt, joules
+// solving for V
+V = h*c/(L*e); // Potential difference, volts
+printf("\nThe minimum voltage of an X-ray tube = %5.2f kV", V/1e+03);
+// Result
+// The minimum voltage of an X-ray tube = 12.42 kV \ No newline at end of file