hypot(3m)
NAME
hypot, cabs − Euclidean distance function
SYNTAX
#include <math.h>
double hypot(x, y)
double x, y;
double cabs(z)
struct { double x, y; } z;
DESCRIPTION
The hypot function returns
sqrt(x ∗ x + y ∗ y),
taking precautions against unwarranted overflows.
DIAGNOSTICS
When the correct value would overflow, hypot returns HUGE and sets the global variable errno to ERANGE.
These error-handling procedures may be changed with the function matherr(3m).