1require_relative "../physics"23question :x_rays_from_thirty_kilovolt_electrons do4 kind :numerical5 describes "X-rays are produced by %{voltage} electrons. %{frequency}, in Hz?"6 given voltage: "30 kV"7 asks frequency: "What is the maximum frequency of the X-rays"8end
1require_relative "../questions/x_rays_from_thirty_kilovolt_electrons"2require_relative "../science/dual_nature_of_radiation_and_matter/photon"34solve :x_rays_from_thirty_kilovolt_electrons, using: Photon do5 objects :x_rays67 take voltage: x_rays.accelerating_potential89 deduce_from "produced by", x_rays.photon_energy => e * x_rays.accelerating_potential1011 frequency = x_rays.frequency12 answer frequency:, in: "Hz", figures: 31314 conclusion "The most energetic X-ray photon takes all the energy an electron gains across the accelerating " \15 "voltage, which sets the highest frequency."16end
1require_relative "../solutions/x_rays_from_thirty_kilovolt_electrons"23play_with :x_rays_from_thirty_kilovolt_electrons do4 title "X-Rays From Thirty Kilovolt Electrons"5end