1require_relative "../physics"23question :what_a_force_is_made_of do4 describes "%{force}, when it moves a mass %{mass} through %{length} in %{time}?"5 given :mass6 given :length7 given :time8 asks force: "What is a force made of"9end
1require_relative "../questions/what_a_force_is_made_of"2require_relative "../science/units_and_measurement/dimensions"34solve :what_a_force_is_made_of, using: Dimensions do5 take mass: :m, length: :l, time: :t6 find_value :v7 find_value :a8 take force: :F9 find_value :force1011 conclusion "A mass times an acceleration, and an acceleration is a length over a time over a " \12 "time again: [F] = [M L T⁻²]. Whatever the numbers, a force is always built that way."13end
1require_relative "../solutions/what_a_force_is_made_of"23play_with :what_a_force_is_made_of do4 title "What a Force Is Made Of"56 input :m, 0.1..10.0, step: 0.1, default: 2.0, as: "mass in kilograms"7 input :l, 0.1..10.0, in: "m", step: 0.1, default: 3.0, as: "length"8 input :t, 0.1..5.0, in: "s", step: 0.1, default: 1.5, as: "time"910 output :v, in: "m/s"11 output :a12 output :F13end