1require_relative "../physics"23question :an_inductor_on_an_ac_supply do4 kind :numerical5 describes "A %{inductance} inductor is connected to %{supply}, %{frequency} ac supply. %{current}, in amperes?"6 given inductance: "44 mH"7 given supply: "220 V"8 given frequency: "50 Hz"9 asks current: "What is the rms value of the current in the circuit"10end
1require_relative "../questions/an_inductor_on_an_ac_supply"2require_relative "../science/alternating_current/reactance"34solve :an_inductor_on_an_ac_supply, using: Reactance do5 objects :circuit67 take inductance: circuit.inductance8 take supply: circuit.voltage_across_the_inductor9 take frequency: circuit.frequency1011 current = circuit.rms_current12 answer current:, in: "A", figures: 31314 conclusion "The inductor alone opposes the current, by a reactance that grows with the frequency and the " \15 "inductance."16end
1require_relative "../solutions/an_inductor_on_an_ac_supply"23play_with :an_inductor_on_an_ac_supply do4 title "An Inductor on an AC Supply"5end