C++ Complex Library - Sqrt
Description
It is a quare root of complex and returns the square root of x using the principal branch, whose cuts are along the negative real axis.
Declaration
Following is the declaration for std::sqrt.
template<class T> complex<T> sqrt (const complex<T>& x);
C++11
template<class T> complex<T> sqrt (const complex<T>& x);
Parameters
x − It is a complex value.
Return Value
It returns the square root of x using the principal branch, whose cuts are along the negative real axis.
Exceptions
none
complex.htm
Advertisements