question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :pulled_round_the_groove do 4 kind :numerical 5 describes "An insect trapped in a circular groove of radius %{radius} goes round it steadily, %{turns} " \ 6 "times in %{time}. %{acceleration}, in cm/s²?" 7 given radius: "12 cm" 8 given turns: 7.0 9 given time: "100 s" 10 asks acceleration: "What is its acceleration" 11 end
1 require_relative "../questions/pulled_round_the_groove" 2 require_relative "../science/motion_in_a_plane/uniform_circular_motion" 3 4 solve :pulled_round_the_groove , using: UniformCircularMotion do 5 objects :insect 6 paths :groove 7 insect . goes ( :round , on: groove ) 8 take radius: groove . radius , turns: insect . revolutions , time: round . time_taken 9 acceleration = insect . centripetal_acceleration 10 answer acceleration :, in: "cm/s2" , figures: 2 11 conclusion "Its speed never changes, but its direction always does, and that turning is an " \ 12 "acceleration pointed at the centre of the groove." 13 end
1 require_relative "../solutions/pulled_round_the_groove" 2 3 play_with :pulled_round_the_groove do 4 title "Pulled Round the Groove" 5 end