- constructors:
SysComplex(TIntegral real, TIntegral complex);
SysComplex(double real);
- assign methods:
bool assign(TIntegral real, TIntegral imag = 0);
- operator = (assignment) methods:
SysComplex& operator = (TIntegral arg);
- cast operator () methods:
operator SysComplex() const;
- methods to manipulate the representation of a complex number:
TIntegral real() const;
TIntegral imag() const;
double mag() const;
double angle() const;
- mathematical methods (with complex arguments):
const SysComplex& operator += (const SysComplex& arg);
const SysComplex& operator -= (const SysComplex& arg);
const SysComplex& operator *= (const SysComplex& arg);
const SysComplex& operator /=(const SysComplex& arg);
- mathematical methods (with real arguments):
SysComplex& operator += (TIntegral arg);
SysComplex& operator -= (TIntegral arg);
SysComplex& operator *= (TIntegral arg);
SysComplex& operator /= (TIntegral arg);
- mathematical methods (increment/decrement):
SysComplex& operator ++ ();
SysComplex& operator -- ();
SysComplex operator ++ (int);
SysComplex operator -- (int);
- relational methods (with complex arguments):
bool operator == (const SysComplex& arg) const;
bool operator != (const SysComplex& arg) const;
bool operator < (const SysComplex& arg) const;
bool operator > (const SysComplex& arg) const;
bool operator <= (const SysComplex& arg) const;
bool operator >= (const SysComplex& arg) const;
- relational methods (with real arguments):
bool operator == (TIntegral arg) const;
bool operator !=(TIntegral arg) const;
bool operator < (TIntegral arg) const;
bool operator > (TIntegral arg) const;
bool operator <= (TIntegral arg) cons;
bool operator >= (TIntegral arg) const;
- arithmetic methods (with two complex arguments):
SysComplex operator + (const SysComplex& arg) const;
SysComplex operator - (const SysComplex& arg) const;
SysComplex operator * (const SysComplex& arg) const;
SysComplex operator / (const SysComplex& arg) const;
- arithmetic methods (with one complex, one real arg):
SysComplex operator + (const TIntegral arg) const;
SysComplex operator - (const TIntegral arg) const;
SysComplex operator * (const TIntegral arg) const;
SysComplex operator / (const TIntegral arg) const;
SysComplex inverse() const;
- miscellaneous complex methods:
SysComplex conjugate() const;
SysComplex polar(double mag, double angle);
- arithmetic methods (with one complex, one real arg): since the
complex arg is to the right these cannot be member functions. For
further explanations, see the notes section.
SysComplex operator + (TIntegral x, const SysComplex& y);
SysComplex operator - (TIntegral x, const SysComplex& y);
SysComplex operator * (TIntegral x, const SysComplex& y);
SysComplex operator / (TIntegral x, const SysComplex& y);
SysComplex operator - (const SysComplex& x);
- relational methods (with TIntegral and complex types): since
the complex arg is to the right these cannot be member functions.
For further explanations, see the notes section.
bool operator > (TIntegral x, const SysComplex& y);
bool operator < (TIntegral x, const SysComplex& y);
bool operator >= (TIntegral x, const SysComplex& y);
bool operator <= (TIntegral x, const SysComplex& y);