Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/complex/pow"

From cppreference.com
< cpp‎ | numeric‎ | complex
(&cdot -> &middot)
m (Text replace - "{{cpp|" to "{{c|")
Line 19: Line 19:
 
Computes complex {{tt|base}} raised to a complex power {{tt|exp}}. The operation is defined as {{math|exp(''base'' &middot; log(''exp'')}}. A branch cut exists along the negative real axis.
 
Computes complex {{tt|base}} raised to a complex power {{tt|exp}}. The operation is defined as {{math|exp(''base'' &middot; log(''exp'')}}. A branch cut exists along the negative real axis.
  
The result of {{cpp|pow(0, 0)}} is implementation-defined.
+
The result of {{c|pow(0, 0)}} is implementation-defined.
  
 
===Parameters===
 
===Parameters===

Revision as of 20:16, 19 April 2012

Template:cpp/numeric/complex/sidebar Template:ddcl list begin <tr class="t-dsc-header">

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

<td></td> <td></td> </tr> <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 exp