Chapter 6: Problem 4
In a sinusoidal steady-state AC circuit, the voltage across a passive element is given by Ohm's law: where \(\mathbf{V}\) is the voltage across the element, \(\mathbf{I}\) is the current through the element, and \(Z\) is the impedance of the clement. Note that all three of these values are complex, and that these complex numbers are usually specified in the form of a magnitude at a specific phase angle expressed in degrees. For example, the voltage might be \(\mathbf{V}=120 \angle 30^{\circ} \mathrm{V}\). Write a program that reads the voltage across an element and the impedance of the element, and calculates the resulting current flow. The input values should be given as magnitudes and angles expressed in degrees, and the resulting answer should be in the same form. Use the function to_complex from Exercise \(6.3\) to convert the numbers to rectangular for the actual computation of the current, and the function to polar from Exercise \(6.2\) to convert the answer into polar form for display (see Figure \(6.13\) ),
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.