electric current that reverses its direction at regular intervals