Record TComplexQuantity

Unit

Declaration

type TComplexQuantity = record

Description

Represents a complex quantity with physical dimensions.

Combines a TComplex value with a TDimension, supporting arithmetic operations while preserving dimensional consistency. When the symbol ADIMOFF is defined, this type degenerates to TComplex.

Overview

Methods

Public class operator *(const ALeft: double; const ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator *(const ALeft: TComplexQuantity; const ARight: double): TComplexQuantity; inline;
Public class operator *(const ALeft, ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator *(const ALeft: TComplexQuantity; const ARight: TQuantity): TComplexQuantity; inline;
Public class operator *(const ALeft: TQuantity; const ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator +(const AValue: TComplexQuantity): TComplexQuantity; inline;
Public class operator +(const ALeft, ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator +(const ALeft: TComplexQuantity; const ARight: TQuantity): TComplexQuantity; inline;
Public class operator +(const ALeft: TQuantity; const ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator -(const AValue: TComplexQuantity): TComplexQuantity; inline;
Public class operator -(const ALeft, ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator -(const ALeft: TComplexQuantity; const ARight: TQuantity): TComplexQuantity; inline;
Public class operator -(const ALeft: TQuantity; const ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator /(const ALeft: double; const ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator /(const ALeft: TComplexQuantity; const ARight: double): TComplexQuantity; inline;
Public class operator /(const ALeft, ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator /(const ALeft: TComplexQuantity; const ARight: TQuantity): TComplexQuantity; inline;
Public class operator /(const ALeft: TQuantity; const ARight: TComplexQuantity): TComplexQuantity; inline;
Public class operator :=(const AQuantity: TQuantity): TComplexQuantity;
Public class operator <>(const ALeft, ARight: TComplexQuantity): boolean; inline;
Public class operator =(const ALeft, ARight: TComplexQuantity): boolean; inline;

Description

Methods

Public class operator *(const ALeft: double; const ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the product of a dimensionless real scalar and a complex quantity.

Public class operator *(const ALeft: TComplexQuantity; const ARight: double): TComplexQuantity; inline;

Returns the product of a complex quantity and a dimensionless real scalar.

Public class operator *(const ALeft, ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the product of two complex quantities. The resulting dimension is the product of the two dimensions.

Public class operator *(const ALeft: TComplexQuantity; const ARight: TQuantity): TComplexQuantity; inline;

Returns the product of a complex quantity and a real quantity. The resulting dimension is the product of the two dimensions.

Public class operator *(const ALeft: TQuantity; const ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the product of a real quantity and a complex quantity. The resulting dimension is the product of the two dimensions.

Public class operator +(const AValue: TComplexQuantity): TComplexQuantity; inline;

Unary plus. Returns the complex quantity unchanged.

Public class operator +(const ALeft, ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the sum of two complex quantities. Both operands must have the same dimension.

Public class operator +(const ALeft: TComplexQuantity; const ARight: TQuantity): TComplexQuantity; inline;

Returns the sum of a complex quantity and a real quantity. Both operands must have the same dimension.

Public class operator +(const ALeft: TQuantity; const ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the sum of a real quantity and a complex quantity. Both operands must have the same dimension.

Public class operator -(const AValue: TComplexQuantity): TComplexQuantity; inline;

Unary minus. Returns the negation of the complex quantity.

Public class operator -(const ALeft, ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the difference of two complex quantities. Both operands must have the same dimension.

Public class operator -(const ALeft: TComplexQuantity; const ARight: TQuantity): TComplexQuantity; inline;

Returns the difference of a complex quantity and a real quantity. Both operands must have the same dimension.

Public class operator -(const ALeft: TQuantity; const ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the difference of a real quantity and a complex quantity. Both operands must have the same dimension.

Public class operator /(const ALeft: double; const ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the quotient of a dimensionless real scalar divided by a complex quantity.

Public class operator /(const ALeft: TComplexQuantity; const ARight: double): TComplexQuantity; inline;

Returns the quotient of a complex quantity divided by a dimensionless real scalar.

Public class operator /(const ALeft, ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the quotient of two complex quantities. The resulting dimension is the ratio of the two dimensions.

Exceptions raised
Exception
if the divisor is zero.
Public class operator /(const ALeft: TComplexQuantity; const ARight: TQuantity): TComplexQuantity; inline;

Returns the quotient of a complex quantity divided by a real quantity. The resulting dimension is the ratio of the two dimensions.

Public class operator /(const ALeft: TQuantity; const ARight: TComplexQuantity): TComplexQuantity; inline;

Returns the quotient of a real quantity divided by a complex quantity. The resulting dimension is the ratio of the two dimensions.

Public class operator :=(const AQuantity: TQuantity): TComplexQuantity;

Implicit conversion from a real TQuantity to a complex quantity. The imaginary part is set to zero.

Public class operator <>(const ALeft, ARight: TComplexQuantity): boolean; inline;

Returns True if the operands differ in dimension or in complex value.

Public class operator =(const ALeft, ARight: TComplexQuantity): boolean; inline;

Returns True if both operands have the same dimension and equal complex values.


Generated by PasDoc 1.0.4.