1require_relative "../physics"23question :the_shortest_x_rays_from_thirty_kilovolts do4 kind :numerical5 describes "X-rays are produced by %{voltage} electrons. %{wavelength}, in nm?"6 given voltage: "30 kV"7 asks wavelength: "What is the minimum wavelength of the X-rays"8end
1require_relative "../questions/the_shortest_x_rays_from_thirty_kilovolts"2require_relative "../science/dual_nature_of_radiation_and_matter/photon"34solve :the_shortest_x_rays_from_thirty_kilovolts, 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 wavelength = x_rays.wavelength12 answer wavelength:, in: "nm", figures: 31314 conclusion "A photon that takes an electron's whole energy has the highest frequency, and so the shortest " \15 "wavelength, the X-rays can have."16end
1require_relative "../solutions/the_shortest_x_rays_from_thirty_kilovolts"23play_with :the_shortest_x_rays_from_thirty_kilovolts do4 title "The Shortest X-Rays From Thirty Kilovolts"5end