1require_relative "../physics"23question :a_bullet_s_wavelength do4 kind :numerical5 describes "%{wavelength} of a bullet of mass %{mass} travelling at the speed of %{speed}, in m?"6 given mass: "0.040 kg"7 given speed: "1.0 km/s"8 asks wavelength: "What is the de Broglie wavelength"9end
1require_relative "../questions/a_bullet_s_wavelength"2require_relative "../science/dual_nature_of_radiation_and_matter/matter_waves"34solve :a_bullet_s_wavelength, using: MatterWaves do5 objects :particle67 take mass: particle.mass8 take speed: particle.speed910 wavelength = particle.de_broglie_wavelength11 answer wavelength:, in: "m", figures: 31213 conclusion "A bullet's momentum is enormous next to Planck's constant, so its wavelength is far too small to " \14 "show any wave behaviour."15end
1require_relative "../solutions/a_bullet_s_wavelength"23play_with :a_bullet_s_wavelength do4 title "A Bullet's Wavelength"5end