Namespaces
Variants
Views
Actions

std::sqrt(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex
Revision as of 22:42, 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> sqrt( const complex<T>& x );
</td>

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

Computes the square root of the complex number x.

The branch cuts are along the negative real axis. sqrt computes the square root in the range of the right half-plane. If x is a negative real number, the return value will lie on the positive imaginary axis.

Parameters

x - complex number to take the square root of

Return value

the square root of x.

See also

Template:cpp/numeric/complex/dcl list pow