The
SQRT function returns the square root of *
X*
.

The value for which the square root is desired. If *
X*
is double-precision floating-point or complex, the result is of the same type. All other types are converted to single-precision floating-point and yield floating-point results. When applied to complex numbers, *
z*
= *
x*
+*
iy*
:

The ambiguous sign is taken to be the same as the sign of *
y*
. The result has the same structure as *
X*
.