electricpy.phasor¶
Description
Complex Phasor Generator.
Generates the standard Pythonic complex representation of a phasor voltage or current when given the magnitude and angle of the specific voltage or current.
- param mag:
The Magnitude of the Voltage/Current
- type mag:
float
- param ang:
The Angle (in degrees) of the Voltage/Current
- type ang:
float
- returns:
phasor – Standard Pythonic Complex Representation of the specified voltage or current.
- rtype:
complex
Examples
>>> from electricpy import phasors
>>> phasor(67, 120) # 67 volts at angle 120 degrees
(-33.499999999999986+58.02370205355739j)
See also
electricpy.cprintComplex Variable Printing Function
electricpy.phasors.phasorlistPhasor Generator for List or Array
electricpy.phasors.phasorzImpedance Phasor Generator
electricpy.phasors.phsComplex Phase Angle Generator