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.cprint
Complex Variable Printing Function
electricpy.phasors.phasorlist
Phasor Generator for List or Array
electricpy.phasors.phasorz
Impedance Phasor Generator
electricpy.phasors.phs
Complex Phase Angle Generator