Name
sqrt function template — Computes square root
Synopsis
template<typename T> complex<T> sqrt(const complex<T>& z)
The sqrt
function returns
the complex square root of z
.The
branch cuts are along the negative real axis. The result always has
a nonnegative real part.
See Also
sqrt
function in <cmath>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.