HYPOT(3M) SysV HYPOT(3M)
NAME
hypot - Euclidean distance function
SYNOPSIS
#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(3M).
DIAGNOSTICS
When the correct value would overflow, hypot returns HUGE_VAL and sets
errno to ERANGE.
If x or y is NaN, NaN is returned.
These error-handling procedures may be changed with the function
matherr(3M).