Gemstone Numeric Library
Show/Hide TOC

# PhasorCalculateRelativePhase Method

Calculates phase φ of voltage relative to current, i.e., angle difference between current and voltage phasor.

## Definition

Namespace: Gemstone.Numeric.EE
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.156 -- Release Build+82008765a27c9679d42964f049db865fa540531c
C#
View Source Request Example

    public static Angle CalculateRelativePhase(
    	Phasor voltage,
    	Phasor current
    )

VB
View Source Request Example

    Public Shared Function CalculateRelativePhase (
    	voltage As Phasor,
    	current As Phasor
    ) As Angle

C++
View Source Request Example

    public:
    static Angle CalculateRelativePhase(
    	Phasor voltage,
    	Phasor current
    )

JavaScript
View Source Request Example

    Gemstone.Numeric.EE.Phasor.CalculateRelativePhase = function(voltage, current);

#### Parameters

voltage Phasor
  Voltage phasor.
current Phasor
  Current phasor.

#### Return Value

Angle
Calculated phase of specified voltage phasor relative to specified current phasor.

## Exceptions

ArgumentException | voltage and current must have proper Type.

## See Also

#### Reference

Phasor Structure
Gemstone.Numeric.EE Namespace