Synopsis
double sqrt(double x);
Description

sqrt computes the nonnegative square root of x. C90 and C99 require that a domain error occurs if the argument is less than zero. CrossWorks C deviates and always uses IEC 60559 semantics.

If x is +0, sqrt returns +0.
If x is −0, sqrt returns −0.
If x is ∞, sqrt returns ∞.
If x < 0, sqrt returns NaN.
If x is NaN, sqrt returns that NaN.