electricpy.zdecompose¶
- electricpy.zdecompose(Zmag, XoR)[source]¶
Impedance Decomposition Function.
A function to decompose the impedance magnitude into its corresponding resistance and reactance using the X/R ratio.
It is possible to “neglect” R, or make it a very small number; this is done by setting the X/R ratio to a very large number (X being much larger than R).
- Parameters:
Zmag (float) – The magnitude of the impedance.
XoR (float) – The X/R ratio (reactance over impedance).
- Returns:
R (float) – The resistance (in ohms)
X (float) – The reactance (in ohms)