summaryrefslogtreecommitdiff
path: root/3845/CH29/EX29.2/Ex29_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH29/EX29.2/Ex29_2.sce')
-rw-r--r--3845/CH29/EX29.2/Ex29_2.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3845/CH29/EX29.2/Ex29_2.sce b/3845/CH29/EX29.2/Ex29_2.sce
new file mode 100644
index 000000000..61d4f28a2
--- /dev/null
+++ b/3845/CH29/EX29.2/Ex29_2.sce
@@ -0,0 +1,8 @@
+//Example 29.2
+q=1.60*10^-19;//Charge of an electron (C)
+V=50*10^3;//Potential difference (V)
+hf=q*V;//Maximum photon energy (J)
+hf=hf*1/(1.60*10^-19);//maximum photon energy (eV)
+printf('Maximum x-ray photon energy = %0.1f keV',hf/1000)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest