Namespaces
Variants
Views
Actions

std::pow(std::complex)

From cppreference.com
Defined in header <complex>
template< class T >
complex<T> pow( const complex<T>& base, const complex<T>& exp );
template< class T >
complex<T> pow( const complex<T>& base, const T& exp );
template< class T >
complex<T> pow( const T& base, const complex<T>& exp );

Computes complex base raised to a complex power exp. The operation is defined as exp(base · log(exp). A branch cut exists along the negative real axis.

The result of pow(0, 0) is implementation-defined.

[edit] Parameters

base - base as a complex value
exp - exponent as a complex value

[edit] Return value

base raised to a power exp.

[edit] See also

complex base e exponential
(function template) [edit]
complex square root in the range of the right half-plane
(function template) [edit]