My Project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
SpaceComplex::Complex Class Reference

Public Member Functions

 Complex ()
 
 Complex (double x_, double y_)
 
Complex operator+ (Complex &c)
 
Complex operator- (Complex &c)
 
Complex operator* (const Complex &c)
 
bool operator== (const Complex &c)
 
Complex conjugate ()
 
double norm (Complex &c)
 
std::pair< double, double > polar ()
 
void print ()
 
 Complex ()
 
 Complex (double x_, double y_)
 
Complex operator+ (Complex &c)
 
Complex operator- (Complex &c)
 
Complex operator* (const Complex &c)
 
bool operator== (const Complex &c)
 
Complex conjugate ()
 
double norm (Complex &c)
 
std::pair< double, double > polar ()
 
void print ()
 

Public Attributes

double x
 
double y
 

Friends

Complex operator/ (const Complex &c1, const Complex &c2)
 division for complex number
 
Complex operator/ (const Complex &c1, const Complex &c2)
 division for complex number
 

Constructor & Destructor Documentation

◆ Complex() [1/4]

SpaceComplex::Complex::Complex ( )
inline

empty complex number

◆ Complex() [2/4]

SpaceComplex::Complex::Complex ( double  x_,
double  y_ 
)
inline

Initialize a complex number

◆ Complex() [3/4]

SpaceComplex::Complex::Complex ( )
inline

empty complex number

◆ Complex() [4/4]

SpaceComplex::Complex::Complex ( double  x_,
double  y_ 
)
inline

Initialize a complex number

Member Function Documentation

◆ operator*() [1/2]

Complex SpaceComplex::Complex::operator* ( const Complex c)
inline

(x1, y1)*(x2, y2) = x1*x2 - y1y2 + i(x1y2 + x2y1) = (x1*x2 - y1y2, x1y2 + x2y1) <http://xfido.com/pdf/quaternion_mynote.pdf Complex_number>

◆ operator*() [2/2]

Complex SpaceComplex::Complex::operator* ( const Complex c)
inline

(x1, y1)*(x2, y2) = x1*x2 - y1y2 + i(x1y2 + x2y1) = (x1*x2 - y1y2, x1y2 + x2y1) <http://xfido.com/pdf/quaternion_mynote.pdf Complex_number>

◆ operator+() [1/2]

Complex SpaceComplex::Complex::operator+ ( Complex c)
inline

Add two complex numbers

◆ operator+() [2/2]

Complex SpaceComplex::Complex::operator+ ( Complex c)
inline

Add two complex numbers

◆ operator-() [1/2]

Complex SpaceComplex::Complex::operator- ( Complex c)
inline

subtract two complex numbers

◆ operator-() [2/2]

Complex SpaceComplex::Complex::operator- ( Complex c)
inline

subtract two complex numbers

◆ operator==() [1/2]

bool SpaceComplex::Complex::operator== ( const Complex c)
inline

equal operator

◆ operator==() [2/2]

bool SpaceComplex::Complex::operator== ( const Complex c)
inline

equal operator

◆ print() [1/2]

void SpaceComplex::Complex::print ( )
inline

print a complex number

◆ print() [2/2]

void SpaceComplex::Complex::print ( )
inline

print a complex number

Friends And Related Function Documentation

◆ operator/ [1/2]

Complex operator/ ( const Complex c1,
const Complex c2 
)
friend

division for complex number

<http://xfido.com/pdf/quaternion_mynote.pdf Complex_number>

◆ operator/ [2/2]

Complex operator/ ( const Complex c1,
const Complex c2 
)
friend

division for complex number

<http://xfido.com/pdf/quaternion_mynote.pdf Complex_number>


The documentation for this class was generated from the following files: