summaryrefslogtreecommitdiff
path: root/3845/CH29/EX29.2/Ex29_2.sce
blob: 61d4f28a27648d768ec8c19aecf36c23265d4a01 (plain)
1
2
3
4
5
6
7
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