NeurApp 1.1
NeurApp - software for exploring approximation by artificial neural networks on functions of one or two variables.
|
Complex class that can only represent real numbers (imaginary part is always 0). Attempt to set an imaginary part different than 0 always throws an exception. More...
Public Member Functions | |
ComplexRealClass () | |
ComplexRealClass (double x) | |
ComplexRealClass (ComplexClass a) | |
override string | ToString () |
Returns string representation of the current complex number that is real (imaginary part 0). | |
Properties | |
override double | Im [get, set] |
Gets (public access) or sets (protected access) the imaginary part of the complex number. Setting imaginary part different than 0 throws an exception. | |
double | SquaredAbs [get] |
Returns squared absolute value of the current complex number. Equals to squared real part for this class (since imaginary part is always 0). | |
override double | Abs [get] |
Modulus (absolute value) of the current complex number. Equals to absolute value of the real part for this class (since imaginary part is always 0). | |
override double | Fi [get] |
Argument of the current complex number. Equals to 0 for this class (since imaginary part is always 0). |
Complex class that can only represent real numbers (imaginary part is always 0). Attempt to set an imaginary part different than 0 always throws an exception.
$A Igor Apr09 Mar11;
IG::Num::ComplexRealClass::ComplexRealClass | ( | ) | [inline] |
IG::Num::ComplexRealClass::ComplexRealClass | ( | double | x | ) | [inline] |
IG::Num::ComplexRealClass::ComplexRealClass | ( | ComplexClass | a | ) | [inline] |
override string IG::Num::ComplexRealClass::ToString | ( | ) | [inline] |
Returns string representation of the current complex number that is real (imaginary part 0).
Reimplemented from IG::Num::ComplexClass.
override double IG::Num::ComplexRealClass::Im [get, set] |
Gets (public access) or sets (protected access) the imaginary part of the complex number. Setting imaginary part different than 0 throws an exception.
Implements IG::Num::IComplex.
double IG::Num::ComplexRealClass::SquaredAbs [get] |
Returns squared absolute value of the current complex number. Equals to squared real part for this class (since imaginary part is always 0).
Implements IG::Num::IComplex.
override double IG::Num::ComplexRealClass::Abs [get] |
Modulus (absolute value) of the current complex number. Equals to absolute value of the real part for this class (since imaginary part is always 0).
Implements IG::Num::IComplex.
override double IG::Num::ComplexRealClass::Fi [get] |
Argument of the current complex number. Equals to 0 for this class (since imaginary part is always 0).
Implements IG::Num::IComplex.