by changing the value of the resistance, the coil and the capacitor value and the value of the maximum voltage applied with its phase shift. The program shall calculate the current in each branch of the circuit and determine the active power and the reactive power of the system along with the power factor. complex numbers are used to do this calculation.