sqrt
, sqrtf
—positive square root#include <math.h> double sqrt(double x); float sqrtf(float x);
Description
sqrt
computes the positive square root of the argument.
You can modify error handling for this function with
matherr
.
Returns
errno
is set to EDOM
(domain error).
Portability
sqrt
is ANSI C. sqrtf
is an extension.