question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :a_whirled_stone_s_string do 4 kind :numerical 5 describes "A stone of mass %{mass} tied to the end of a string is whirled round in a circle of radius %{radius} " \ 6 "with a speed of %{rate} in a horizontal plane. %{tension}, in newtons?" 7 given mass: "0.25 kg" 8 given radius: "1.5 m" 9 given rate: "40 rpm" 10 asks tension: "What is the tension in the string" 11 end
1 require_relative "../questions/a_whirled_stone_s_string" 2 require_relative "../science/motion_in_a_plane/uniform_circular_motion" 3 4 solve :a_whirled_stone_s_string , using: UniformCircularMotion do 5 objects :stone 6 paths :circle 7 stone . goes ( :round , on: circle ) 8 take mass: stone . mass , radius: circle . radius , rate: stone . angular_speed 9 tension = stone . centripetal_force 10 answer tension :, in: "N" , figures: 2 11 conclusion "In a horizontal plane the string alone turns the stone, so its tension is just the force it " \ 12 "takes to keep the stone's velocity swinging round toward the centre." 13 end
1 require_relative "../solutions/a_whirled_stone_s_string" 2 3 play_with :a_whirled_stone_s_string do 4 title "A Whirled Stone's String" 5 end