1require_relative "../physics"23question :a_ball_s_wavelength do4 kind :numerical5 describes "%{wavelength} of a ball of mass %{mass} moving at a speed of %{speed}, in m?"6 given mass: "0.060 kg"7 given speed: "1.0 m/s"8 asks wavelength: "What is the de Broglie wavelength"9end
1require_relative "../questions/a_ball_s_wavelength"2require_relative "../science/dual_nature_of_radiation_and_matter/matter_waves"34solve :a_ball_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 "Even a slow ball has a momentum vastly larger than Planck's constant, so its wavelength is " \14 "immeasurably small."15end
1require_relative "../solutions/a_ball_s_wavelength"23play_with :a_ball_s_wavelength do4 title "A Ball's Wavelength"5end