question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :a_loop_in_the_sky do 4 kind :numerical 5 describes "An aircraft flies a horizontal loop of radius %{radius} at a steady %{speed}. Taking g as " \ 6 "%{gravity}, %{times_g}?" 7 given radius: "1.00 km" 8 given speed: "900 km/h" 9 given gravity: "9.8 m/s2" 10 asks times_g: "how many times g is its acceleration" 11 end
1 require_relative "../questions/a_loop_in_the_sky" 2 require_relative "../science/motion_in_a_plane/uniform_circular_motion" 3 4 solve :a_loop_in_the_sky , using: UniformCircularMotion do 5 objects :aircraft 6 paths :circle 7 aircraft . goes ( :round , on: circle ) 8 take radius: circle . radius , speed: aircraft . speed , gravity: g 9 times_g = aircraft . against_gravity 10 answer times_g :, figures: 3 11 conclusion "A tight turn at speed asks for far more than gravity's pull, which is why pilots " \ 12 "feel several times their own weight in one." 13 end
1 require_relative "../solutions/a_loop_in_the_sky" 2 3 play_with :a_loop_in_the_sky do 4 title "A Loop in the Sky" 5 end