sqrt

Determines the square root.

  template<class T> 
  complex<T> sqrt (const complex<T>&);
  
Remarks

Returns the square root of the complex class argument in the range of right half plane. If the argument is a negative real number, the value returned lies on the positive imaginary axis.