Direct and alternating currents