Description
Wrap currentPhaseDegrees-voltagePhaseDegrees into [-180,180).
Sinusoidal electrical calculations need a common frequency, phase reference and RMS or peak convention. Phasor sums, complex power and composite RMS describe different operations; a sign label alone does not establish a physical connection or waveform.
Wrap currentPhaseDegrees-voltagePhaseDegrees into [-180,180).
When to use this tool
Use Electricity: Phasor Leading Lagging Label when checking a stated phasor, power or RMS convention.
How to use the tool and how it works
- Enter currentPhaseDegrees, voltagePhaseDegrees. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read result. Expand result to inspect the returned fields.
Require current and voltage phase degrees in [-360,360]. Wrap currentPhaseDegrees-voltagePhaseDegrees into [-180,180). Label zero in-phase, absolute 180 opposed, positive current-leading and negative current-lagging.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| currentPhaseDegrees | Current Phase Degrees Unit: deg. | Required. Finite number. |
| voltagePhaseDegrees | Voltage Phase Degrees Unit: deg. | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Object containing the named calculated members below. | Required. Object. |
| result.relativePhaseDegrees | Relative Phase Degrees | Calculated result member: number. |
| result.label | Label | Calculated result member: string. |
{
"input": {
"currentPhaseDegrees": 30,
"voltagePhaseDegrees": 0
},
"output": {
"result": {
"relativePhaseDegrees": 30,
"label": "current-leading"
}
}
} Limitations and assumptions
- The exact half-cycle tie becomes -180. No tolerance or waveform analysis is added, and physical leading/lagging interpretation requires consistent phase and time-sign conventions.
- Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use compatible measured waveforms and a complete circuit or harmonic model when signals are distorted, references differ or practical limits matter.
References
Similar or alternative tools
- Phasor Phase Sign Reference Inversion
Preserve magnitude and return phaseDegrees+180 wrapped modulo 360.
- Phasor Single Frequency Time Origin
Return phaseRadians as phaseRadians+angularFrequency*originShift wrapped modulo 2*pi into [0,2*pi).