HYPOT(S) UNIX System V HYPOT(S)
Name
hypot - euclidean distance function
Syntax
#include <math.h>
double hypot (x, y)
double x, y;
Description
hypot returns
sqrt(x * x + y * y),
taking precautions against unwarranted overflows.
See Also
matherr(S)
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).
Standards Conformance
hypot is conformant with:
AT&T SVID Issue 2, Select Code 307-127;
and The X/Open Portability Guide II of January 1987.
(printed 6/20/89)