Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

DComplex

Module:  Essential Math    Group:  DComplex class


Does not inherit

Local Index

Members

Non-Members

Synopsis

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

Description


NOTE -- 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 std::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 Part III.

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 DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.