CAPD::DynSys Library
6.0.0
|
Classes | |
class | Complex |
Class Complex represents complex number. More... | |
class | Complex< double > |
class | Complex< float > |
class | Complex< long double > |
Functions | |
template<class T > | |
T | real (const Complex< T > &z) |
returns the real component More... | |
template<class T > | |
T | imag (const Complex< T > &z) |
returns the imaginary component More... | |
template<class T > | |
T | abs (const Complex< T > &z) |
returns the magnitude of a complex number More... | |
template<class T > | |
T | arg (const Complex< T > &z) |
returns the phase angle More... | |
template<class T > | |
T | norm (const Complex< T > &z) |
returns the squared magnitude More... | |
template<class T > | |
Complex< T > | conj (const Complex< T > &z) |
returns the complex conjugate More... | |
template<class T > | |
Complex< T > | polar (const T &r, const T &theta=T()) |
constructs a complex number from magnitude r and phase angle theta More... | |
template<typename T > | |
bool | intersection (const Complex< T > &a, const Complex< T > &b, Complex< T > &result) |
template<typename T > | |
const Complex< T > | intervalHull (const Complex< T > &a, const Complex< T > &b) |
template<typename T > | |
Complex< T > | power (const Complex< T > &x, int n) |
TODO: this is a naive implementation. Should be improved. More... | |
template<typename T > | |
Complex< T > | mid (const Complex< T > &x) |
T capd::fields::abs | ( | const Complex< T > & | z | ) |
returns the magnitude of a complex number
T capd::fields::arg | ( | const Complex< T > & | z | ) |
returns the phase angle
returns the complex conjugate
T capd::fields::imag | ( | const Complex< T > & | z | ) |
returns the imaginary component
bool capd::fields::intersection | ( | const Complex< T > & | a, |
const Complex< T > & | b, | ||
Complex< T > & | result | ||
) |
const Complex<T> capd::fields::intervalHull | ( | const Complex< T > & | a, |
const Complex< T > & | b | ||
) |
T capd::fields::norm | ( | const Complex< T > & | z | ) |
returns the squared magnitude
Complex<T> capd::fields::polar | ( | const T & | r, |
const T & | theta = T() |
||
) |
constructs a complex number from magnitude r and phase angle theta
TODO: this is a naive implementation. Should be improved.
T capd::fields::real | ( | const Complex< T > & | z | ) |
returns the real component