1require_relative "../physics"23question :angle_from_an_arc do4 describes "%{angle} whose arc is %{arc} long on a circle of radius %{radius}?"5 given :arc6 given :radius7 asks angle: "How big is an angle"8end
1require_relative "../questions/angle_from_an_arc"2require_relative "../science/units_and_measurement/units"34solve :angle_from_an_arc, using: Units do5 take arc: :s, radius: :r6 take angle: :theta7 find_value :angle89 conclusion "As big as the arc it cuts off, counted in radii: θ = s ⁄ r. An arc as long as the " \10 "radius makes one radian, and a length over a length leaves a pure number, so an " \11 "angle has no dimensions."12end
1require_relative "../solutions/angle_from_an_arc"23play_with :angle_from_an_arc do4 title "An Angle from an Arc"56 input :s, 0.0..20.0, in: "m", step: 0.1, default: 1.0, as: "arc length"7 input :r, 0.5..10.0, in: "m", step: 0.1, default: 1.0, as: "radius"89 output :theta, as: "angle in radians"10end