Record TImaginaryUnit
Unit
Declaration
type TImaginaryUnit = record
Description
Represents the imaginary unit i, defined by i² = -1.
This record has no fields: it acts as a compile-time constant used to construct TComplex numbers naturally via operator overloading (e.g. 3*i, 1 + 2*i, z*i). A global constant of this type (conventionally named i) should be declared to allow idiomatic use in expressions. Supports arithmetic with real numbers, TComplex numbers, and optionally with dimensional quantities (TQuantity / TComplexQuantity).
Overview
Methods
| Public | class operator *(const ALeft: double; const ARight: TImaginaryUnit): TComplex; |
| Public | class operator *(const ALeft: TComplex; const ARight: TImaginaryUnit): TComplex; |
| Public | class operator *(const ALeft: TImaginaryUnit; const ARight: double): TComplex; |
| Public | class operator *(const ALeft: TImaginaryUnit; const ARight: TComplex): TComplex; |
| Public | class operator *(const ALeft, ARight: TImaginaryUnit): double; |
| Public | class operator *(const ALeft: TImaginaryUnit; const ARight: TQuantity): TComplexQuantity; |
| Public | class operator *(const ALeft: TQuantity; const ARight: TImaginaryUnit): TComplexQuantity; |
| Public | class operator +(const ALeft: double; const ARight: TImaginaryUnit): TComplex; |
| Public | class operator +(const ALeft: TComplex; const ARight: TImaginaryUnit): TComplex; |
| Public | class operator +(const AValue: TImaginaryUnit): TComplex; |
| Public | class operator +(const ALeft: TImaginaryUnit; const ARight: double): TComplex; |
| Public | class operator +(const ALeft: TImaginaryUnit; const ARight: TComplex): TComplex; |
| Public | class operator -(const ALeft: double; const ARight: TImaginaryUnit): TComplex; |
| Public | class operator -(const ALeft: TComplex; const ARight: TImaginaryUnit): TComplex; |
| Public | class operator -(const AValue: TImaginaryUnit): TComplex; |
| Public | class operator -(const ALeft: TImaginaryUnit; const ARight: double): TComplex; |
| Public | class operator -(const ALeft: TImaginaryUnit; const ARight: TComplex): TComplex; |
| Public | class operator /(const ALeft: double; const ARight: TImaginaryUnit): TComplex; |
| Public | class operator /(const ALeft: TComplex; const ARight: TImaginaryUnit): TComplex; |
| Public | class operator /(const ALeft: TImaginaryUnit; const ARight: double): TComplex; |
| Public | class operator /(const ALeft: TImaginaryUnit; const ARight: TComplex): TComplex; |
| Public | class operator /(const ALeft, ARight: TImaginaryUnit): double; |
| Public | class operator /(const ALeft: TImaginaryUnit; const ARight: TQuantity): TComplexQuantity; |
| Public | class operator /(const ALeft: TQuantity; const ARight: TImaginaryUnit): TComplexQuantity; |
| Public | class operator :=(const ASelf: TImaginaryUnit): TComplex; |
Description
Methods
| Public | class operator *(const ALeft: double; const ARight: TImaginaryUnit): TComplex; |
|
Returns the product of a real number and the imaginary unit: | |
| Public | class operator *(const ALeft: TComplex; const ARight: TImaginaryUnit): TComplex; |
|
Returns the product of a complex number and the imaginary unit: | |
| Public | class operator *(const ALeft: TImaginaryUnit; const ARight: double): TComplex; |
|
Returns the product of the imaginary unit and a real number: | |
| Public | class operator *(const ALeft: TImaginaryUnit; const ARight: TComplex): TComplex; |
|
Returns the product of the imaginary unit and a complex number: | |
| Public | class operator *(const ALeft, ARight: TImaginaryUnit): double; |
|
Returns the product of the imaginary unit with itself: | |
| Public | class operator *(const ALeft: TImaginaryUnit; const ARight: TQuantity): TComplexQuantity; |
|
Returns the product of the imaginary unit and a dimensional quantity. The dimension is preserved. | |
| Public | class operator *(const ALeft: TQuantity; const ARight: TImaginaryUnit): TComplexQuantity; |
|
Returns the product of a dimensional quantity and the imaginary unit. The dimension is preserved. | |
| Public | class operator +(const ALeft: double; const ARight: TImaginaryUnit): TComplex; |
|
Returns the sum of a real number and the imaginary unit: | |
| Public | class operator +(const ALeft: TComplex; const ARight: TImaginaryUnit): TComplex; |
|
Returns the sum of a complex number and the imaginary unit: | |
| Public | class operator +(const AValue: TImaginaryUnit): TComplex; |
|
Unary plus. Returns the imaginary unit as a TComplex number unchanged. Result: | |
| Public | class operator +(const ALeft: TImaginaryUnit; const ARight: double): TComplex; |
|
Returns the sum of the imaginary unit and a real number: | |
| Public | class operator +(const ALeft: TImaginaryUnit; const ARight: TComplex): TComplex; |
|
Returns the sum of the imaginary unit and a complex number: | |
| Public | class operator -(const ALeft: double; const ARight: TImaginaryUnit): TComplex; |
|
Returns the difference of a real number and the imaginary unit: | |
| Public | class operator -(const ALeft: TComplex; const ARight: TImaginaryUnit): TComplex; |
|
Returns the difference of a complex number and the imaginary unit: | |
| Public | class operator -(const AValue: TImaginaryUnit): TComplex; |
|
Unary minus. Returns the negation of the imaginary unit as a TComplex number. Result: | |
| Public | class operator -(const ALeft: TImaginaryUnit; const ARight: double): TComplex; |
|
Returns the difference of the imaginary unit and a real number: | |
| Public | class operator -(const ALeft: TImaginaryUnit; const ARight: TComplex): TComplex; |
|
Returns the difference of the imaginary unit and a complex number: | |
| Public | class operator /(const ALeft: double; const ARight: TImaginaryUnit): TComplex; |
|
Returns the quotient of a real number divided by the imaginary unit: | |
| Public | class operator /(const ALeft: TComplex; const ARight: TImaginaryUnit): TComplex; |
|
Returns the quotient of a complex number divided by the imaginary unit: | |
| Public | class operator /(const ALeft: TImaginaryUnit; const ARight: double): TComplex; |
|
Returns the quotient of the imaginary unit divided by a real number: | |
| Public | class operator /(const ALeft: TImaginaryUnit; const ARight: TComplex): TComplex; |
|
Returns the quotient of the imaginary unit divided by a complex number: | |
| Public | class operator /(const ALeft, ARight: TImaginaryUnit): double; |
|
Returns the quotient of the imaginary unit divided by itself: | |
| Public | class operator /(const ALeft: TImaginaryUnit; const ARight: TQuantity): TComplexQuantity; |
|
Returns the quotient of the imaginary unit divided by a dimensional quantity. The resulting dimension is the inverse of | |
| Public | class operator /(const ALeft: TQuantity; const ARight: TImaginaryUnit): TComplexQuantity; |
|
Returns the quotient of a dimensional quantity divided by the imaginary unit. The dimension is preserved. | |
| Public | class operator :=(const ASelf: TImaginaryUnit): TComplex; |
|
Implicit conversion of the imaginary unit to a TComplex number. Returns | |
Generated by PasDoc 1.0.4.