#include <mycomplex.h>
Public Member Functions | |
Complex (const Complex &cc) | |
Constructor, setting equal to another Complex number. | |
const Complex & | operator= (const Complex &s) |
Sets contents equal to another Complex number. | |
double | real () const |
returns real part | |
double | imag () const |
returns imaginary part | |
void | setRe (double a) |
sets real part | |
void | setIm (double a) |
sets imaginary part | |
double | mod () const |
returns modulus of number | |
double | arg () const |
returns angle (in Argand diagram): theta=-pi->pi | |
Complex | conj () const |
Complex conjugate. | |
bool | operator>= (const Complex &a) const |
Complex | cc () const |
Complex conjugate. |
|
Returns true if either real part or imaginary part is bigger than relevant bit of a |