< cpp‎ | numeric‎ | complex
Revision as of 13:58, 31 May 2014 by Diego91b (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Defined in header <complex>
template< class T >
complex<T> sqrt( const complex<T>& x );

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.

[edit] Parameters

x - complex number to take the square root of

[edit] Return value

the square root of x.

[edit] See also

complex power, one or both arguments may be a complex number
(function template) [edit]
computes square root (x)
(function) [edit]
applies the function std::sqrt to each element of valarray
(function template) [edit]
C documentation for csqrt