std::sqrt(std::complex) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::sqrt(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex

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

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/complex/sqrt&oldid=70894"