1require_relative "../physics"23question :a_position_rule do4 kind :numerical5 describes "A body's position is x = a + bt², where a is %{a} and b is 2.5 m/s². %{speed} at " \6 "t = %{t}, in m/s?"7 given a: "8.5 m"8 given t: "2.0 s"9 asks speed: "How fast is it moving"10end
1require_relative "../questions/a_position_rule"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :a_position_rule, using: UniformAcceleration do5 take a: :x_0, t: :t6 deduce_from "x = a + bt²", v_0: "0 m/s"7 deduce_from "b is 2.5 m/s²", a: "5.0 m/s2"8 take speed: :v9 answer find_value(:speed, in: "m/s")1011 conclusion "A position that grows as the square of the time is a body starting from rest with a " \12 "steady acceleration of twice b."13end
1require_relative "../solutions/a_position_rule"23play_with :a_position_rule do4 title "A Position Rule"5end