class Complex
Complex(const double real_part = 0.0, const double imag_part = 0.0)
double real(const Complex& c)
double imag(const Complex& c)
double norm(const Complex& c)
double abs(const Complex& c)
or
double fabs(const Complex& c)
complex conjugate(const Complex& c)
Complex operator-(const Complex& a)
e.g.
e.g.
e.g.
e.g.
e.g. Complex a; cin >> a; Complex b = -a;
Complex operator+(const Type1 a, const Type2& b)
(where at least one of Type1 and Type2 is Complex; the other may be
int, double or Complex)
Complex a, b; cin >> a >> b; Complex c = a + b;
Complex operator-(const Type1 a, const Type2& b)
(where at least one of Type1 and Type2 is Complex; the other may be
int, double or Complex)
Complex a, b; cin >> a >> b; Complex c = a - b;
Complex operator*(const Type1 a, const Type2& b)
(where at least one of Type1 and Type2 is Complex; the other may be
int, double or Complex)
Complex a, b; cin >> a >> b; Complex c = a * b;
Complex operator/(const Type1 a, const Type2& b)
(where at least one of Type1 and Type2 is Complex; the other may be
int, double or Complex)
Complex a, b; cin >> a >> b; Complex c = a / b;
Complex exp(const Complex& a)
Complex log(const Complex& a)
Complex pow(const Type& a, const Type& b)
(where at least one of Type1 and Type2 is Complex; the other may be
int, double or Complex)