Record TComplex
Unit
Declaration
type TComplex = record
Description
Represents a complex number in Cartesian form: z = Re + i·Im.
A complex number consists of:
Re: the real part
Im: the imaginary part
The imaginary unit i is defined by i² = -1. All arithmetic operations follow standard complex number algebra.
Overview
Methods
| Public | function Arg: double; |
| Public | function Conjugate: TComplex; |
| Public | function IsNotNull: boolean; |
| Public | function IsNull: boolean; |
| Public | function Norm: double; |
| Public | function Reciprocal: TComplex; |
| Public | function SquaredNorm: double; |
| Public | function ToString: string; |
| Public | function ToString(APrecision, ADigits: integer): string; |
| Public | procedure Zero; |
| Public | class operator *(const ALeft: double; const ARight: TComplex): TComplex; inline; |
| Public | class operator *(const ALeft: TComplex; const ARight: double): TComplex; inline; |
| Public | class operator *(const ALeft, ARight: TComplex): TComplex; inline; |
| Public | class operator +(const ALeft: double; const ARight: TComplex): TComplex; inline; |
| Public | class operator +(const AValue: TComplex): TComplex; inline; |
| Public | class operator +(const ALeft: TComplex; const ARight: double): TComplex; inline; |
| Public | class operator +(const ALeft, ARight: TComplex): TComplex; inline; |
| Public | class operator -(const ALeft: double; const ARight: TComplex): TComplex; inline; |
| Public | class operator -(const AValue: TComplex): TComplex; inline; |
| Public | class operator -(const ALeft: TComplex; const ARight: double): TComplex; inline; |
| Public | class operator -(const ALeft, ARight: TComplex): TComplex; inline; |
| Public | class operator /(const ALeft: double; const ARight: TComplex): TComplex; inline; |
| Public | class operator /(const ALeft: TComplex; const ARight: double): TComplex; inline; |
| Public | class operator /(const ALeft, ARight: TComplex): TComplex; inline; |
| Public | class operator :=(const AValue: double): TComplex; |
| Public | class operator <>(const ALeft, ARight: TComplex): boolean; inline; |
| Public | class operator =(const ALeft, ARight: TComplex): boolean; inline; |
Properties
| Public | property Im: double read fIm write fIm; |
| Public | property Re: double read fRe write fRe; |
Description
Methods
| Public | function Arg: double; |
|
Returns the argument (phase angle) of the complex number, in radians. The argument is defined as | |
| Public | function Conjugate: TComplex; |
|
Returns the complex conjugate of the number. If | |
| Public | function IsNotNull: boolean; |
|
Returns | |
| Public | function IsNull: boolean; |
|
Returns | |
| Public | function Norm: double; |
|
Returns the modulus (magnitude) of the complex number. Defined as | |
| Public | function Reciprocal: TComplex; |
|
Returns the reciprocal of the complex number: Exceptions raised
| |
| Public | function SquaredNorm: double; |
|
Returns the squared modulus of the complex number. Defined as | |
| Public | function ToString: string; |
|
Converts the complex number to its default string representation. The format is | |
| Public | function ToString(APrecision, ADigits: integer): string; |
|
Converts the complex number to a formatted string with controlled precision. Parameters
| |
| Public | procedure Zero; |
|
Sets the complex number to zero. After this call | |
| Public | class operator *(const ALeft: double; const ARight: TComplex): TComplex; inline; |
|
Returns the product of a real number and a complex number. | |
| Public | class operator *(const ALeft: TComplex; const ARight: double): TComplex; inline; |
|
Returns the product of a complex number and a real number. | |
| Public | class operator *(const ALeft, ARight: TComplex): TComplex; inline; |
|
Returns the product of two complex numbers. | |
| Public | class operator +(const ALeft: double; const ARight: TComplex): TComplex; inline; |
|
Returns the sum of a real number and a complex number. | |
| Public | class operator +(const AValue: TComplex): TComplex; inline; |
|
Unary plus. Returns the complex number unchanged. | |
| Public | class operator +(const ALeft: TComplex; const ARight: double): TComplex; inline; |
|
Returns the sum of a complex number and a real number. | |
| Public | class operator +(const ALeft, ARight: TComplex): TComplex; inline; |
|
Returns the sum of two complex numbers: | |
| Public | class operator -(const ALeft: double; const ARight: TComplex): TComplex; inline; |
|
Returns the difference of a real number and a complex number. | |
| Public | class operator -(const AValue: TComplex): TComplex; inline; |
|
Unary minus. Returns the negation of the complex number: | |
| Public | class operator -(const ALeft: TComplex; const ARight: double): TComplex; inline; |
|
Returns the difference of a complex number and a real number. | |
| Public | class operator -(const ALeft, ARight: TComplex): TComplex; inline; |
|
Returns the difference of two complex numbers: | |
| Public | class operator /(const ALeft: double; const ARight: TComplex): TComplex; inline; |
|
Returns the quotient of a real number divided by a complex number. | |
| Public | class operator /(const ALeft: TComplex; const ARight: double): TComplex; inline; |
|
Returns the quotient of a complex number divided by a real number. | |
| Public | class operator /(const ALeft, ARight: TComplex): TComplex; inline; |
|
Returns the quotient of two complex numbers. Exceptions raised
| |
| Public | class operator :=(const AValue: double): TComplex; |
|
Implicit conversion from a real value to a complex number. The resulting complex number has | |
| Public | class operator <>(const ALeft, ARight: TComplex): boolean; inline; |
|
Returns | |
| Public | class operator =(const ALeft, ARight: TComplex): boolean; inline; |
|
Returns | |
Properties
| Public | property Im: double read fIm write fIm; |
|
Imaginary part of the complex number. | |
| Public | property Re: double read fRe write fRe; |
|
Real part of the complex number. | |
Generated by PasDoc 1.0.4.