CAPD::DynSys Library  6.0.0
capd::fields Namespace Reference

Classes

class  Complex
 Class Complex represents complex number. More...
 
class  Complex< double >
 
class  Complex< float >
 
class  Complex< long double >
 

Functions

template<class T >
real (const Complex< T > &z)
 returns the real component More...
 
template<class T >
imag (const Complex< T > &z)
 returns the imaginary component More...
 
template<class T >
abs (const Complex< T > &z)
 returns the magnitude of a complex number More...
 
template<class T >
arg (const Complex< T > &z)
 returns the phase angle More...
 
template<class 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)
 

Function Documentation

◆ abs()

template<class T >
T capd::fields::abs ( const Complex< T > &  z)

returns the magnitude of a complex number

◆ arg()

template<class T >
T capd::fields::arg ( const Complex< T > &  z)

returns the phase angle

◆ conj()

template<class T >
Complex<T> capd::fields::conj ( const Complex< T > &  z)

returns the complex conjugate

◆ imag()

template<class T >
T capd::fields::imag ( const Complex< T > &  z)

returns the imaginary component

◆ intersection()

template<typename T >
bool capd::fields::intersection ( const Complex< T > &  a,
const Complex< T > &  b,
Complex< T > &  result 
)

◆ intervalHull()

template<typename T >
const Complex<T> capd::fields::intervalHull ( const Complex< T > &  a,
const Complex< T > &  b 
)

◆ mid()

template<typename T >
Complex<T> capd::fields::mid ( const Complex< T > &  x)

◆ norm()

template<class T >
T capd::fields::norm ( const Complex< T > &  z)

returns the squared magnitude

◆ polar()

template<class T >
Complex<T> capd::fields::polar ( const T &  r,
const T &  theta = T() 
)

constructs a complex number from magnitude r and phase angle theta

◆ power()

template<typename T >
Complex<T> capd::fields::power ( const Complex< T > &  x,
int  n 
)
inline

TODO: this is a naive implementation. Should be improved.

◆ real()

template<class T >
T capd::fields::real ( const Complex< T > &  z)

returns the real component