Gemstone Numeric Library
Show/Hide TOC

# Phasor Structure

Represents a phasor as a complex number value and a type (i.e., a voltage or a current).

## Definition

Namespace: Gemstone.Numeric.EE
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.138 -- Release Build+88ca978c0cce6d0d3e501e198adb13956063f519
C#
View Source Request Example

    public readonly struct Phasor : IEquatable<Phasor>

VB
View Source Request Example

    Public Structure Phasor
    	Implements IEquatable(Of Phasor)

C++
View Source Request Example

    public value class Phasor : IEquatable<Phasor>

JavaScript
View Source Request Example

    JavaScript supports the use of structures, but not the declaration of new ones.

Inheritance
  Object ValueType Phasor

Implements
  IEquatable Phasor

## Constructors

Phasor(PhasorType, Complex) | Creates a Phasor of the specified type from the given Complex.
Phasor(PhasorType, Angle, Double) | Creates a Phasor of the specified type from the given polar values.
Phasor(PhasorType, Double, Double) | Creates a Phasor of the specified type from the given rectangular values.

## Properties

Conjugate | Gets the complex conjugate of this Phasor.

## Methods

CalculateActivePower | Calculates active (or real) power P, i.e., total watts, from imaginary and real components of a voltage and current phasor.
CalculateApparentPower | Calculates apparent power |S|, i.e., magnitude of complex power, from a voltage and current phasor.
CalculateComplexPower | Calculates complex power S, i.e., total volt-amperes power vector, from a voltage and current phasor.
CalculateReactivePower | Calculates reactive power Q, i.e., total volt-amperes of reactive power, from imaginary and real components of a voltage and current phasor.
CalculateRelativePhase | Calculates phase φ of voltage relative to current, i.e., angle difference between current and voltage phasor.
Equals(Object) | Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueTypeEquals(Object))
Equals(Phasor) | Returns a value indicating whether this instance is equal to a specified Phasor value.
GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode)
GetType | Gets the Type of the current instance. (Inherited from Object)
Pow | Returns specified Phasor raised to the specified power.
ToString | Converts the numeric value of this instance to its equivalent string representation. (Overrides ValueTypeToString)

## Operators

Addition(Phasor, Phasor) | Returns computed sum of values.
Division(Phasor, Phasor) | Returns computed division of values.
Equality(Phasor, Phasor) | Compares the two values for equality.
Exponent(Phasor, Double) | Returns result of first value raised to power of second value.
(Phasor to Complex) | Implicitly converts a Phasor to a Complex.
Inequality(Phasor, Phasor) | Compares the two values for inequality.
Multiply(Phasor, Phasor) | Returns computed product of values.
Subtraction(Phasor, Phasor) | Returns computed difference of values.
UnaryNegation(Phasor) | Returns the negated value.

## Fields

Type | Phasor type.
Value | Phasor value.

## See Also

#### Reference

Gemstone.Numeric.EE Namespace