Complex number.
More...
|
static bool | operator== (complex a, complex b) |
|
static bool | operator!= (complex a, complex b) |
|
static complex | operator+ (complex a, complex b) |
| Binary operator + for summation of two complex numbers. More...
|
|
static complex | operator- (complex a, complex b) |
| Binary operator - subtraction of two complex numbers. More...
|
|
static complex | operator- (complex a) |
| Unary operator - changing sign of a complex number. More...
|
|
static complex | operator* (double a, complex c) |
| Left multiplication of a complex number by a real number. More...
|
|
static complex | operator* (complex c, double a) |
| Right multiplication of a complex number by a real number. More...
|
|
static complex | operator* (complex a, complex b) |
| Complex multiplication. More...
|
|
static complex | operator/ (complex a, complex b) |
| Complex division. More...
|
|
static implicit | operator complex (double number) |
| Implicit conversion between from double to Complex. More...
|
|
static complex | Polar (double r, double fi) |
|
static double | Absolute (complex a) |
| Returns an absolute value of the specified complex number. More...
|
|
static complex | Conjugate (complex a) |
| Returns a complex conjugate of the argument. More...
|
|
static int | Compare (complex c1, complex c2) |
| Compares two complex numbers and returns -1 if the first number is "smaller" than the second one, 0 if they are equal and 1 if the first number is "greater" than the second one. Comparison is artificial and does not have mathematical meaning. 0 is returned if and only if numbers are equal. More...
|
|
static void | Example () |
| Example of using the complex class. More...
|
|
|
double | Re [get, private set] |
| Gets (public access) or sets (protected access) the real part of the complex number. More...
|
|
double | Im [get, private set] |
| Gets (public access) or sets (protected access) the imaginary part of the complex number. More...
|
|
double | SquaredAbs [get] |
| Returns squared absolute value of the current complex number. More...
|
|
double | Abs [get] |
| Gets modulus (absolute value) of the complex number. More...
|
|
double | Fi [get] |
| Argument of the complex number. More...
|
|
static complex | Zero [get] |
| Complex constant 0 + 0*i (summation unit) More...
|
|
static complex | One [get] |
| Complex constant 1 + 0*i (multiplication unit). More...
|
|
static complex | I [get] |
| Complex constant 1 + 0*i (summation unit) More...
|
|
double | this[int index] [get, set] |
| Index operator - index 0 for real part and 1 for imaginary part of a complex number. More...
|
|
double | this[string index] [get, set] |
| Index operator where a string index defines what to get or to set. Possible indices read/write: re, Re, real, Real: real part of the complex number im, Im, imaginary, Imaginary: imaginary part of the complex number Possible indices - read only: r, R: modulus (absolute value) of the complex number fi, Fi: argument of the complex number More...
|
|
double | Re [get] |
| Real part of the current complex number. More...
|
|
double | Im [get] |
| Imaginary part of the current complex number. More...
|
|
double | SquaredAbs [get] |
| Returns squared absolute value of the current complex number. More...
|
|
double | Abs [get] |
| Modulus (absolute value) of the current complex number. More...
|
|
double | Fi [get] |
| Argument of the current complex number. More...
|
|
Complex number.
$A Igor Sep08;
IG.Num.complex.complex |
( |
double |
real | ) |
|
|
inline |
Initializes a complex number with specified real part and imaginary part 0.
- Parameters
-
real | Value assigned to the real part of the created complex number. |
imaginary | Value assigned to the imaginary part of the created complex number. |
IG.Num.complex.complex |
( |
double |
real, |
|
|
double |
imaginary |
|
) |
| |
|
inline |
Initializes a complex number with specified real and imaginary part.
- Parameters
-
real | Value assigned to the real part of the created complex number. |
imaginary | Value assigned to the imaginary part of the created complex number. |
IG.Num.complex.complex |
( |
complex |
a | ) |
|
|
inline |
Initializes a complex number with another complex number.
- Parameters
-
a | Complex number whose copy is created in this constructor. |
static implicit IG.Num.complex.operator complex |
( |
double |
number | ) |
|
|
inlinestatic |
Implicit conversion between from double to Complex.
- Parameters
-
number | Number that is converted. |
- Returns
- Complex number that is a result of conversion from the specified number..
override int IG.Num.complex.GetHashCode |
( |
| ) |
|
|
inline |
override bool IG.Num.complex.Equals |
( |
Object |
obj | ) |
|
|
inline |
static complex IG.Num.complex.Polar |
( |
double |
r, |
|
|
double |
fi |
|
) |
| |
|
inlinestatic |
override string IG.Num.complex.ToString |
( |
| ) |
|
|
inline |
double IG.Num.complex.Absolute |
( |
| ) |
|
|
inline |
static double IG.Num.complex.Absolute |
( |
complex |
a | ) |
|
|
inlinestatic |
Returns an absolute value of the specified complex number.
- Parameters
-
a | Complex number whose absolute value is returned. |
References IG.Num.complex.Abs.
complex IG.Num.complex.Conjugate |
( |
| ) |
|
|
inline |
Compares two complex numbers and returns -1 if the first number is "smaller" than the second one, 0 if they are equal and 1 if the first number is "greater" than the second one. Comparison is artificial and does not have mathematical meaning. 0 is returned if and only if numbers are equal.
- Parameters
-
c1 | First number to be compared. |
c2 | Second number to be compared. |
- Returns
References IG.Num.complex.Im, and IG.Num.complex.Re.
static void IG.Num.complex.Example |
( |
| ) |
|
|
inlinestatic |
double IG.Num.complex._real |
|
private |
double IG.Num.complex._imaginary |
double IG.Num.complex.SquaredAbs |
|
get |
Returns squared absolute value of the current complex number.
double IG.Num.complex.Abs |
|
get |
Argument of the complex number.
Complex constant 0 + 0*i (summation unit)
Complex constant 1 + 0*i (multiplication unit).
Complex constant 1 + 0*i (summation unit)
double IG.Num.complex.this[int index] |
|
getset |
Index operator - index 0 for real part and 1 for imaginary part of a complex number.
- Parameters
-
index | Integer index that can be 0 (for real part of the complex number) or 1 (for imaginary part). |
double IG.Num.complex.this[string index] |
|
getset |
Index operator where a string index defines what to get or to set. Possible indices read/write: re, Re, real, Real: real part of the complex number im, Im, imaginary, Imaginary: imaginary part of the complex number Possible indices - read only: r, R: modulus (absolute value) of the complex number fi, Fi: argument of the complex number
- Parameters
-
index | String that defines what to get or to set. |
The documentation for this struct was generated from the following file: