hypot(S) 6 January 1993 hypot(S) Name hypot - euclidean distance function Syntax cc . . . -lm #include <math.h> double hypot (x, y) double x, y; Description hypot returns sqrt(x * x + y * y), taking precautions against unwarranted overflows. Diagnostics When the correct value would overflow, hypot returns HUGE and sets errno to ERANGE. These error-handling procedures may be changed with the function matherr(S). See also matherr(S) Standards conformance hypot is conformant with: AT&T SVID Issue 2; and X/Open Portability Guide, Issue 3, 1989.