1require_relative "../physics"23question :a_slide_on_the_screen do4 kind :numerical5 describes "A slide of %{slide_area} is thrown onto a screen, where its picture covers %{picture_area}. %{magnification}?"6 given slide_area: "1.75 cm2"7 given picture_area: "1.55 m2"8 asks magnification: "How many times are lengths magnified"9end
1require_relative "../questions/a_slide_on_the_screen"2require_relative "../science/units_and_measurement/dimensions"34solve :a_slide_on_the_screen, using: Dimensions do5 take slide_area: :A_o, picture_area: :A_i6 take magnification: :m_l7 answer find_value(:magnification, figures: 3, root: :positive)89 conclusion "Areas grow as the square of lengths, so the linear magnification is the square root " \10 "of the areas' ratio."11end
1require_relative "../solutions/a_slide_on_the_screen"23play_with :a_slide_on_the_screen do4 title "A Slide on the Screen"5end