NeurApp 1.1
NeurApp - software for exploring approximation by artificial neural networks on functions of one or two variables.

IG::Num::ComplexRealClass Class Reference

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...

Inheritance diagram for IG::Num::ComplexRealClass:
Collaboration diagram for IG::Num::ComplexRealClass:

List of all members.

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).

Detailed Description

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;


Constructor & Destructor Documentation

IG::Num::ComplexRealClass::ComplexRealClass ( ) [inline]
IG::Num::ComplexRealClass::ComplexRealClass ( double  x) [inline]
IG::Num::ComplexRealClass::ComplexRealClass ( ComplexClass  a) [inline]

Member Function Documentation

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.


Property Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties