Theory and Calculation of Alternating Current Phenomena