Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

mdp_complex Class Reference

portable complex numbers More...

#include <mdp_complex.h>

List of all members.

Public Member Functions

mdp_real & real ()
mdp_real & imag ()
const mdp_real & real () const
const mdp_real & imag () const
 mdp_complex (const mdp_real a=0.0, const mdp_real b=0.0)
 mdp_complex (const mdp_complex &c)
bool operator== (const mdp_complex &c)
bool operator!= (const mdp_complex &c)
void operator+= (const mdp_complex &c)
void operator-= (const mdp_complex &c)
void operator *= (const mdp_complex &c)
void operator/= (const mdp_complex &c)
void operator+= (const mdp_real c)
void operator-= (const mdp_real c)
void operator *= (const mdp_real c)
void operator/= (const mdp_real c)

Public Attributes

mdp_real re
mdp_real im


mdp_real real (const mdp_complex &c)
mdp_real imag (const mdp_complex &c)
mdp_real abs (const mdp_complex &c)
mdp_real arg (const mdp_complex &c)
mdp_complex pow (const mdp_complex &c, mdp_real z)
mdp_complex sqrt (const mdp_complex &c)
mdp_complex exp (const mdp_complex &c)
mdp_complex sin (const mdp_complex &c)
mdp_complex cos (const mdp_complex &c)
mdp_complex times_i (const mdp_complex &c)
mdp_complex times_minus_i (const mdp_complex &c)
mdp_complex operator- (const mdp_complex &c)
mdp_complex operator+ (const mdp_complex &c)
mdp_real phase (const mdp_complex &c)
mdp_complex conj (const mdp_complex &a)

Detailed Description

portable complex numbers


       mdp_complex x=3+5*I;
       cout << << "," << x.imag() << endl;
       cout << sin(x) << endl;

The documentation for this class was generated from the following file:
Generated on Sun Feb 27 15:12:25 2005 by  doxygen 1.4.1