Difference between revisions of "cpp/numeric/complex/pow"
From cppreference.com
m (Text replace - "{{cpp|" to "{{c|") |
(added sqrt see-also) |
||
Line 34: | Line 34: | ||
{{dcl list begin}} | {{dcl list begin}} | ||
{{dcl list template | cpp/numeric/complex/dcl list exp}} | {{dcl list template | cpp/numeric/complex/dcl list exp}} | ||
+ | {{dcl list template | cpp/numeric/complex/dcl list sqrt}} | ||
{{dcl list end}} | {{dcl list end}} |
Revision as of 11:43, 2 June 2012
Template:cpp/numeric/complex/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<complex>
<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>
complex<T> pow( const complex<T>& base, const complex<T>& exp );
<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>
complex<T> pow( const complex<T>& base, const T& exp );
<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>
complex<T> pow( const T& base, const complex<T>& exp );
<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
.