ZeusMath-Library
2.0.4
|
#include <Complex.h>
Public Member Functions | |
TComplex () | |
TComplex (const TComplex &rInpar) | |
TComplex (const Float &fValue1, const Float &fValue2, bool bPolar=false) | |
TComplex (const Float &fX) | |
TComplex (Int iX) | |
TComplex (int iX) | |
virtual | ~TComplex () |
void | assign (const TComplex &rInpar) |
bool | equals (const TComplex &rInpar, Float fPrecision=FLOAT_PRECISION) const |
bool | equals (const Float &rX, Float fPrecision=FLOAT_PRECISION) const |
const Float & | getReal () const |
const Float & | getIm () const |
const Float | getAbsValue () const |
const Float | getArgument () const |
bool | isReal () const |
bool | isImaginary () const |
bool | isComplex () const |
void | setReal (const Float &fReal) |
void | setIm (const Float &fIm) |
void | setAbsValue (const Float &fAbsValue) |
void | setArgument (const Float &fArgument) |
void | setCartesianValues (const Float &fReal, const Float &fIm) |
void | setPolarValues (const Float &fAbsValue, const Float &fArgument) |
TString | toString (Float fRoundPrecision=0.0001, bool bPolar=false) const |
TComplex | operator+ (const TComplex &z) const |
TComplex | operator+ (const Float &x) const |
TComplex | operator- (const TComplex &z) const |
TComplex | operator- (const Float &x) const |
TComplex | operator* (const TComplex &b) const |
TComplex | operator* (const Float &x) const |
TComplex | operator/ (const Float &x) const |
void | operator+= (const TComplex &z) |
void | operator+= (const Float &x) |
void | operator-= (const TComplex &z) |
void | operator-= (const Float &x) |
void | operator*= (const TComplex &z) |
void | operator*= (const Float &x) |
void | operator/= (const Float &x) |
const TComplex & | operator= (const TComplex &rX) |
const TComplex & | operator= (Float fReal) |
bool | operator== (const TComplex &z) const |
bool | operator== (const Float &x) const |
bool | operator!= (const TComplex &z) const |
bool | operator!= (const Float &x) const |
Static Public Member Functions | |
static TComplex | log (const TComplex &z) |
static TComplex | log (const TComplex &z, const Float &fBasis) |
static TComplex | log10 (const TComplex &z) |
static TComplex | sqrt (const TComplex &z) |
static TComplex | pow (const TComplex &zBase, const TComplex &zExponent) |
This datatype implements a complex number
|
inline |
Creates a complex number 0 + 0i
|
inline |
Copy constructor
rInpar | : complex value to assign |
|
inline |
Creates a complex number fValue1 + fValue2i if the bPolar-Flag is not set (default) or fValue1*e^(i*fValue2) if the flag is set (polar form)
fValue1 | : value 1 (real or absolute value) |
fValue2 | : value 2 (imaginary or argument value) |
bPolar | : Flag must be set for polar values |
|
inline |
Creates a complex number out of a real number (no imaginary component)
fX | : real value |
|
inline |
Creates a complex number out of an integer number (no imaginary component)
iX | : integer value |
|
inline |
Creates a complex number out of an integer number (no imaginary component)
iX | : integer value |
|
inlinevirtual |
Destroys the complex number
|
inline |
assigns a complex number
rInpar | : complex number to assign |
|
inline |
checks if two complex numbers are equal
rInpar | : complex value to check |
fPrecision | : Precision of the float comparing |
true | : are equal |
false | are not equal |
|
inline |
checks if a real number numbers equals the complex number
rX | : real value to check |
fPrecision | : Precision of the float comparing |
true | : are equal |
false | are not equal |
|
inline |
returns the absolute component of the complex value
|
inline |
returns the argument component of the complex value
|
inline |
returns the imaginary component of the complex value
|
inline |
returns the real component of the complex value
|
inline |
Checks if the number is complex
false | is real |
true | : is complex |
|
inline |
Checks if the complex number is imaginary
true | : is imaginary |
false | is complex or real |
|
inline |
Checks if the complex number is real
true | : is real |
false | is complex |
logarithm naturalis
z | complex value |
generic logarithm
z | complex value |
fBasis | : Basis of th log |
decimal logarithm
z | : complex value |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
operator to get the power
zBase | base |
zExponent | : exponent |
zBase | ^ zExponent |
|
inline |
Sets the absolute value as the polar component
fAbsValue | : Absolute value |
|
inline |
Sets the argument value as the polar component
fArgument | : Argument value |
|
inline |
Sets the real and imaginary values of the complex number
fReal | : Real component |
fIm | : Imaginary component |
|
inline |
Sets the imaginary component
fIm | : imaginary component |
|
inline |
Sets the absolute and argument values of the complex number
fAbsValue | : absolute value |
fArgument | : argument value |
|
inline |
Sets the real component
fReal | : Real component |
Square root
z | : complex value |
sqrt(z) |
TString TComplex::toString | ( | Float | fRoundPrecision = 0.0001 , |
bool | bPolar = false |
||
) | const |
Prints a complex number as string
fRoundPrecision | : Rounding precision |
bPolar | : Flag to either print in regular comple notation or in polar notation |