Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

DComplex



Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/dcomplex.h>
DComplex a;

Description

Class DComplex is used with compilers that do not have a native complex class. Otherwise, the name is typedefed to the name of the native complex class. If you're using a Standard C++ Library build, DComplex is typedef'd to complex<double>, the Standard C++ Library complex number class complex<T> with T as a double.

Please note that the Related Global Functions for DComplex are defined at the end of this entry, rather than in the Global Function Reference part of the Math.h++ User's Guide.

Public Constructors

DComplex()
DComplex(double r);
DComplex(double r, double i);

Public Member Operators

void     operator+=(DComplex);
void     operator-=(DComplex);
void     operator*=(DComplex);
void     operator/=(DComplex);

Global Operators

DComplex   operator-(DComplex);
DComplex   operator+(DComplex, DComplex);
DComplex   operator-(DComplex, DComplex);
DComplex   operator*(DComplex, DComplex);
DComplex   operator/(DComplex, DComplex);
DComplex   operator+(double, DComplex);
DComplex   operator+(DComplex, double);
DComplex   operator-(double, DComplex);
DComplex   operator-(DComplex, double);
DComplex   operator*(DComplex, double);
DComplex   operator*(double, DComplex);
int   operator==(DComplex a, DComplex b);
int   operator!=(DComplex a, DComplex b);
ostream&  operator<<(ostream& s, DComplex a);
istream&  operator>>(istream& s, DComplex& a);

Related Global Functions

double
real(const DComplex& a);
double
imag(const DComplex& a);
double
abs(DComplex);
double
norm(DComplex);
double
arg(DComplex);
DComplex
conj(DComplex a);
DComplex
polar(double r, double t);
DComplex   
cos(DComplex);
DComplex   
cosh(DComplex);
DComplex   
exp(DComplex);
DComplex   
log(DComplex);
DComplex   
pow(double, DComplex);
DComplex   
pow(DComplex, int);
DComplex   
pow(DComplex, double);
DComplex   
pow(DComplex, DComplex);
DComplex   
sin(DComplex);
DComplex   
sinh(DComplex);
DComplex   
sqrt(DComplex);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.