IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Class representing general complex numbers. More...
Public Member Functions | |
Complex_OldNumerics () | |
Default (parameter-less) constructor, creates 0+0*i. More... | |
Complex_OldNumerics (double real, double imaginary) | |
Initializes a complex number with specified real and imaginary part. More... | |
Complex_OldNumerics (Complex_OldNumerics a) | |
Initializes a complex number with another complex number. More... | |
Complex_OldNumerics | Add (Complex_OldNumerics x) |
Complex_OldNumerics | Subtract (Complex_OldNumerics x) |
Complex_OldNumerics | Multiply (Complex_OldNumerics x) |
Complex_OldNumerics | Divide (Complex_OldNumerics x) |
Complex_OldNumerics | Negative () |
Complex_OldNumerics | Inverse () |
override string | ToString () |
Returns a string representation of the complec number in the form "2.3+4.5*i". More... | |
double | Abs () |
Absolute value of the complex number. More... | |
Complex_OldNumerics | Conjugate () |
Complex conjugate. More... | |
Static Public Member Functions | |
static Complex_OldNumerics | operator+ (Complex_OldNumerics a, Complex_OldNumerics b) |
Defines the binary operator + for summation of two complex numbers. More... | |
static Complex_OldNumerics | operator- (Complex_OldNumerics a, Complex_OldNumerics b) |
Defines the binary operator - for subtraction of two complex numbers. More... | |
static Complex_OldNumerics | operator- (Complex_OldNumerics a) |
Defines the unary operator - for changing sign of a complex number. More... | |
static Complex_OldNumerics | operator* (double a, Complex_OldNumerics c) |
Left multiplication of a complex number by a real number. More... | |
static Complex_OldNumerics | operator* (Complex_OldNumerics c, double a) |
Right multiplication of a complex number by a real number. More... | |
static Complex_OldNumerics | operator* (Complex_OldNumerics a, Complex_OldNumerics b) |
Complex multiplication. More... | |
static Complex_OldNumerics | operator/ (Complex_OldNumerics a, Complex_OldNumerics b) |
static Complex_OldNumerics | Polar (double r, double fi) |
static double | Abs (Complex_OldNumerics a) |
Returns an absolute value of a complex number. More... | |
static Complex_OldNumerics | Conjugate (Complex_OldNumerics a) |
Returns a complex conjugate of the argument. More... | |
static void | Example () |
Properties | |
virtual double | Re [get, protected set] |
Gets (public access) or sets (protected access) the real part of the complex number. More... | |
virtual double | Im [get, protected set] |
Gets (public access) or sets (protected access) the imaginary part of the complex number. More... | |
virtual double | r [get] |
Modulus of the complex number More... | |
virtual double | fi [get] |
Argument of the complex number. More... | |
static Complex_OldNumerics | Zero [get] |
Complex constant 0 + 0*i (summation unit) More... | |
static Complex_OldNumerics | One [get] |
Complex constant 1 + 0*i (summation unit) More... | |
static Complex_OldNumerics | i [get] |
Complex constant 1 + 0*i (summation unit) More... | |
double | this[int index] [get, set] |
double | this[string index] [get, set] |
![]() | |
double | Re [get] |
double | Im [get] |
double | r [get] |
double | fi [get] |
Private Attributes | |
double | _real = 0 |
double | _imaginary = 0 |
Static Private Attributes | |
static Complex_OldNumerics | _zero = null |
static Complex_OldNumerics | _one = null |
static Complex_OldNumerics | _i = null |
Class representing general complex numbers.
|
inline |
Default (parameter-less) constructor, creates 0+0*i.
|
inline |
Initializes a complex number with specified real and imaginary part.
real | Value assigned to the real part of the created complex number. |
imaginary | Value assigned to the imaginary part of the created complex number. |
|
inline |
Initializes a complex number with another complex number.
a | Complex number whose copy is created in this constructor. |
References IG.Old.Complex_OldNumerics.Im, and IG.Old.Complex_OldNumerics.Re.
|
inlinestatic |
Defines the binary operator + for summation of two complex numbers.
References IG.Old.Complex_OldNumerics.Im, IG.Old.Complex_OldNumerics.Re, and IG.Old.Complex_OldNumerics.Zero.
|
inlinestatic |
Defines the binary operator - for subtraction of two complex numbers.
References IG.Old.Complex_OldNumerics.Im, IG.Old.Complex_OldNumerics.Re, and IG.Old.Complex_OldNumerics.Zero.
|
inlinestatic |
Defines the unary operator - for changing sign of a complex number.
References IG.Old.Complex_OldNumerics.Im, IG.Old.Complex_OldNumerics.Re, and IG.Old.Complex_OldNumerics.Zero.
|
inlinestatic |
Left multiplication of a complex number by a real number.
References IG.Old.Complex_OldNumerics.Im, IG.Old.Complex_OldNumerics.Re, and IG.Old.Complex_OldNumerics.Zero.
|
inlinestatic |
Right multiplication of a complex number by a real number.
References IG.Old.Complex_OldNumerics.Im, IG.Old.Complex_OldNumerics.Re, and IG.Old.Complex_OldNumerics.Zero.
|
inlinestatic |
Complex multiplication.
References IG.Old.Complex_OldNumerics.Im, IG.Old.Complex_OldNumerics.Re, and IG.Old.Complex_OldNumerics.Zero.
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
Returns a string representation of the complec number in the form "2.3+4.5*i".
Referenced by IG.Old.Complex_OldNumerics.Example().
|
inline |
Absolute value of the complex number.
Implements IG.Old.IComplex_OldNumerics.
|
inlinestatic |
Returns an absolute value of a complex number.
References IG.Old.Complex_OldNumerics.Im, and IG.Old.Complex_OldNumerics.Re.
|
inline |
Complex conjugate.
Referenced by IG.Old.ComplexVector_OldNumerics.Conjugate(), and IG.Old.Complex_OldNumerics.Example().
|
inlinestatic |
Returns a complex conjugate of the argument.
References IG.Old.Complex_OldNumerics.Im, and IG.Old.Complex_OldNumerics.Re.
|
inlinestatic |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
getprotected set |
Gets (public access) or sets (protected access) the real part of the complex number.
Referenced by IG.Old.Complex_OldNumerics.Abs(), IG.Old.Complex_OldNumerics.Complex_OldNumerics(), IG.Old.Complex_OldNumerics.Conjugate(), IG.Old.Complex_OldNumerics.operator*(), IG.Old.Complex_OldNumerics.operator+(), IG.Old.Complex_OldNumerics.operator-(), IG.Old.Complex_OldNumerics.operator/(), and IG.Old.Real_OldNumerics.Real_OldNumerics().
|
getprotected set |
Gets (public access) or sets (protected access) the imaginary part of the complex number.
Referenced by IG.Old.Complex_OldNumerics.Abs(), IG.Old.Complex_OldNumerics.Complex_OldNumerics(), IG.Old.Complex_OldNumerics.Conjugate(), IG.Old.Complex_OldNumerics.operator*(), IG.Old.Complex_OldNumerics.operator+(), IG.Old.Complex_OldNumerics.operator-(), IG.Old.Complex_OldNumerics.operator/(), and IG.Old.Real_OldNumerics.Real_OldNumerics().
|
get |
Modulus of the complex number
|
get |
Argument of the complex number.
|
staticget |
Complex constant 0 + 0*i (summation unit)
Referenced by IG.Old.ComplexVector_OldNumerics.Negative(), IG.Old.Complex_OldNumerics.operator*(), IG.Old.Complex_OldNumerics.operator+(), IG.Old.Complex_OldNumerics.operator-(), and IG.Old.Complex_OldNumerics.operator/().
|
staticget |
Complex constant 1 + 0*i (summation unit)
Referenced by IG.Old.ComplexVector_OldNumerics.Inverse().
|
staticget |
Complex constant 1 + 0*i (summation unit)
|
getset |
|
getset |