|
|
| Complex () |
| | Empty, set complex to zero.
|
| |
| | Complex (const double &, const double &=0.0) |
| | Create a complex number.
|
| |
| constexpr double & | operator[] (int) |
| | Overloaded.
|
| |
|
const constexpr double & | operator[] (int) const |
| | Overloaded.
|
| |
|
Complex | operator+ () const |
| | Overloaded.
|
| |
|
Complex | operator- () const |
| | Overloaded.
|
| |
|
Complex & | operator+= (const Complex &) |
| | Overloaded.
|
| |
|
Complex & | operator-= (const Complex &) |
| | Overloaded.
|
| |
|
Complex & | operator*= (const Complex &) |
| | Overloaded.
|
| |
|
Complex & | operator*= (const double &) |
| | Overloaded.
|
| |
|
Complex & | operator/= (const double &) |
| | Overloaded.
|
| |
|
double | Arg () const |
| | Returns the argument of a complex.
|
| |
|
Complex | Conj () const |
| | Computes the conjugate of a complex number.
|
| |
| int | Escape (int=1024) const |
| | Compute the escape time in the Mandelbrot series.
|
| |
|
|
Complex | operator+ (const Complex &u, const Complex &v) |
| | Adds two complex numbers.
|
| |
|
Complex | operator- (const Complex &u, const Complex &v) |
| | Subtract two complex numbers.
|
| |
|
Complex | operator* (const Complex &u, const Complex &v) |
| | Multiplies two complex numbers.
|
| |
|
Complex | operator* (const Complex &u, const double &a) |
| | Overloaded.
|
| |
|
Complex | operator* (const double &a, const Complex &v) |
| | Overloaded.
|
| |
|
Complex | operator/ (const Complex &u, const double &a) |
| | Overloaded.
|
| |
| Complex | operator/ (const Complex &u, const Complex &v) |
| | Divide two complex numbers.
|
| |
|
Complex | operator/ (const double &a, const Complex &c) |
| | Compute the inverse of a complex number.
|
| |
|
bool | operator== (const Complex &u, const Complex &v) |
| | Overloaded.
|
| |
|
bool | operator!= (const Complex &u, const Complex &v) |
| | Overloaded.
|
| |
|
double | Norm (const Complex &u) |
| | Returns the module of a complex.
|
| |
| void | Normalize (Complex &z) |
| | Normalize a complex.
|
| |
| Complex | Sqrt (const Complex &z) |
| | Computes the square root of a complex number.
|
| |
| std::ostream & | operator<< (std::ostream &s, const Complex &complex) |
| | Overloaded.
|
| |
Complex numbers.
All operators are overloaded to enable the writing of simple math expressions.