pow function template — Computes power
template<class T> complex<T> pow(const complex<T>& x, int y); template<class T> complex<T> pow(const complex<T>& x, const T& y); template<class T> complex<T> pow(const complex<T>& x, const complex<T>& y); template<class T> complex<T> pow(const T& x, const complex<T>& y);
The pow
function returns
the complex power xy
. If x
and y
are both 0
, the result is
implementation-defined; otherwise, the result is exp(y
*
log(x))
. The branch cuts are
along the negative real axis.