@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, 2003 Eggs & Pictures. MIT/Open BSD copyright model.
|
Public Methods |
| RComplex () |
| RComplex (double real, double img=0.0) |
| RComplex (double root, double theta, int sign) |
| RComplex (const RComplex &x) |
RComplex & | operator= (const RComplex &x) |
| ~RComplex () |
double | getReal () |
double | getImg () |
double | getRoot () |
double | getAbs () |
double | getArg () |
RComplex | pow (double pow) |
void | operator+= (double value) |
void | operator-= (double value) |
void | operator *= (double value) |
void | operator/= (double value) |
void | operator+= (const RComplex &v) |
void | operator-= (const RComplex &v) |
void | operator *= (const RComplex &v) |
void | operator/= (const RComplex &v) |
void | output () |
void | output (FILE *file) |
Public Attributes |
double | a |
double | b |
RComplex | conjugate () |
RComplex | sqrt () |
RComplex | sqr () |
RComplex | exp () |
RComplex | log () |
Friends |
RComplex | operator+ (const RComplex &v, double a) |
RComplex | operator+ (double a, const RComplex &v) |
RComplex | operator- (const RComplex &v, double a) |
RComplex | operator- (double a, const RComplex &v) |
RComplex | operator * (const RComplex &v, double a) |
RComplex | operator * (double a, const RComplex &v) |
RComplex | operator/ (const RComplex &v, double a) |
RComplex | operator+ (const RComplex &v1, const RComplex &v2) |
RComplex | operator- (const RComplex &v1, const RComplex &v2) |
RComplex | operator * (const RComplex &v1, const RComplex &v2) |
RComplex | operator/ (const RComplex &v1, const RComplex &v2) |