1require_relative "../physics"23question :a_beating_heart do4 kind :numerical5 describes "On an average, a human heart is found to beat %{beats} times in %{time}. %{frequency}, in hertz?"6 given beats: "75"7 given time: "1 min"8 asks frequency: "What is its frequency"9end
1require_relative "../questions/a_beating_heart"2require_relative "../science/oscillations/periodic_motion"34solve :a_beating_heart, using: PeriodicMotion do5 objects :heart6 heart.goes(:beating)78 take beats: heart.repetitions9 take time: beating.time_taken1011 frequency = heart.frequency12 answer frequency:, in: "Hz", figures: 31314 conclusion "Frequency counts the beats in each second, so the beats in a minute are shared out over " \15 "its sixty seconds."16end
1require_relative "../solutions/a_beating_heart"23play_with :a_beating_heart do4 title "A Beating Heart"5end