RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
complex.h File Reference
#include <math.h>
#include <iostream>

Go to the source code of this file.

Classes

class  complex
 

Functions

double real (const complex &_z)
 
double imag (const complex &_z)
 
complex conj (const complex _z)
 
double norm (const complex _z)
 
double cabs (const complex _z)
 
double mag (const complex _z)
 
double mag_sqrd (const complex _z)
 
double arg (const complex _z)
 
complex cexp (const complex _z)
 
complex sqrt (const complex _z)
 
complex operator- (const complex _z)
 
complex operator+ (const complex _z1, const complex _z2)
 
complex operator- (const complex _z1, const complex _z2)
 
complex operator* (const complex _z1, double _v2)
 
complex operator* (double _v1, const complex _z2)
 
complex operator/ (const complex z1, double v2)
 
complex operator* (const complex value1, const complex value2)
 
std::ostream & operator<< (std::ostream &, const complex &)
 
std::istream & operator>> (std::istream &, complex &)
 

Function Documentation

double arg(const complex _z)
inline

Definition at line 133 of file complex.h.

double cabs(const complex _z)
inline

Definition at line 118 of file complex.h.

complex cexp(const complex _z)
inline

Definition at line 139 of file complex.h.

complex conj(const complex _z)
inline

Definition at line 108 of file complex.h.

double imag(const complex_z)
inline

Definition at line 103 of file complex.h.

double mag(const complex _z)
inline

Definition at line 123 of file complex.h.

double mag_sqrd(const complex _z)
inline

Definition at line 128 of file complex.h.

double norm(const complex _z)
inline

Definition at line 113 of file complex.h.

complex operator*(const complex _z1,
double _v2 
)
inline

Definition at line 175 of file complex.h.

complex operator*(double _v1,
const complex _z2 
)
inline

Definition at line 180 of file complex.h.

complex operator*(const complex value1,
const complex value2 
)
inline

Definition at line 191 of file complex.h.

complex operator+(const complex _z1,
const complex _z2 
)
inline

Definition at line 164 of file complex.h.

complex operator-(const complex _z)
inline

Definition at line 158 of file complex.h.

complex operator-(const complex _z1,
const complex _z2 
)
inline

Definition at line 170 of file complex.h.

complex operator/(const complex z1,
double v2 
)
inline

Definition at line 186 of file complex.h.

std::ostream& operator<<(std::ostream & ,
const complex 
)

Definition at line 11 of file complex.cpp.

std::istream& operator>>(std::istream & ,
complex 
)

Definition at line 18 of file complex.cpp.

double real(const complex_z)
inline

Definition at line 98 of file complex.h.

complex sqrt(const complex _z)
inline

Definition at line 148 of file complex.h.