1require_relative "../physics"23question :a_joule_in_ergs do4 kind :numerical5 describes "The erg is the unit of work in grams, centimetres and seconds. %{ergs} %{joule}?"6 given joule: "1 J", as: "a joule"7 asks ergs: "How many ergs make"8end
1require_relative "../questions/a_joule_in_ergs"2require_relative "../science/units_and_measurement/dimensions"34solve :a_joule_in_ergs, using: Dimensions do5 take joule: :W6 take ergs: :W7 answer find_value(:ergs, in: "erg", figures: 1)89 conclusion "To change the units of a derived quantity, change each base unit in it, raised to " \10 "the power its dimensions give it. Work is [M L² T⁻²], so the gram counts once and " \11 "the centimetre twice."12end
1require_relative "../solutions/a_joule_in_ergs"23play_with :a_joule_in_ergs do4 title "A Joule in Ergs"5end