AC voltage to resistor , inductor and capacitor