1require_relative "../physics"23question :an_ac_supply_s_rms_voltage do4 kind :numerical5 describes "The peak voltage of an ac supply is %{peak}. %{rms}, in volts?"6 given peak: "300 V"7 asks rms: "What is the rms voltage"8end
1require_relative "../questions/an_ac_supply_s_rms_voltage"2require_relative "../science/alternating_current/resistor_on_ac"34solve :an_ac_supply_s_rms_voltage, using: ResistorOnAc do5 objects :supply67 take peak: supply.peak_voltage89 rms = supply.rms_voltage10 answer rms:, in: "V", figures: 41112 conclusion "A sine wave's rms value is its peak shrunk by the square root of two."13end
1require_relative "../solutions/an_ac_supply_s_rms_voltage"23play_with :an_ac_supply_s_rms_voltage do4 title "An AC Supply's RMS Voltage"5end