Developer's Daily | Unix by Example |
main | java | perl | unix | dev directory | web log |
sqrt ? square root function |
#include <math.h> double sqrt(double x); |
The sqrt() function returns the non-negative square root of x. It fails and sets errno to EDOM, if x is negative. |
EDOM |
x is negative. |
SVID 3, POSIX, BSD 4.3, ISO 9899 |
hypot(3) |