Record TComplexQuantityHelper

Unit

Declaration

type TComplexQuantityHelper = record helper for TComplexQuantity

Description

Record helper for TComplexQuantity providing additional operations on complex physical quantities. Only available when ADIMOFF is not defined.

Overview

Methods

Public function Conjugate: TComplexQuantity;
Public function Norm: TQuantity;
Public function Reciprocal: TComplexQuantity;
Public function SquaredNorm: TQuantity;

Description

Methods

Public function Conjugate: TComplexQuantity;

Returns the complex conjugate of the quantity. If z = (a + i·b) [dim]* , the conjugate is z* = (a - i·b) [dim]. The physical dimension is preserved.

Public function Norm: TQuantity;

Returns the modulus (magnitude) of the complex quantity as a real quantity. Defined as |z| = √(Re² + Im²). The resulting dimension equals the dimension of the original quantity.

Public function Reciprocal: TComplexQuantity;

Returns the reciprocal of the complex quantity: 1 / z. The resulting dimension is the inverse of the original dimension.

Public function SquaredNorm: TQuantity;

Returns the squared modulus of the complex quantity as a real quantity. Defined as |z|² = Re² + Im². The resulting dimension is the square of the dimension of the original quantity. Avoids the square root computation of Norm.


Generated by PasDoc 1.0.4.