Namespaces
Variants
Views
Actions

std::pow(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex
Revision as of 22:46, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <complex>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class T >
complex<T> pow( const complex<T>& base, const complex<T>& exp );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class T >
complex<T> pow( const complex<T>& base, const T& exp );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class T >
complex<T> pow( const T& base, const complex<T>& exp );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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.

Parameters

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

Return value

base raised to a power exp.

See also

Template:cpp/numeric/complex/dcl list expTemplate:cpp/numeric/complex/dcl list sqrt