sqrt() Mathematics Function sqrt() Compute square root #include <math.h> double sqrt(z) double z; sqrt returns the square root of z. ***** Example ***** For an example of this function, see the entry for ceil. ***** See Also ***** mathematics library ***** Diagnostics ***** When a domain error occurs (i.e., when z is negative), sqrt sets errno to EDOM and returns zero. COHERENT Lexicon Page 1