hypot(3m)
NAME
hypot, cabs − Euclidean distance
SYNTAX
#include <math.h>
double hypot(x, y)
double x, y;
double cabs(z)
struct { double x, y;} z;
DESCRIPTION
The hypot and cabs functions return
sqrt(x*x + y*y),
taking precautions against unwarranted overflows.
ENVIRONMENT
When your program is compiled using the System V environment, if the correct value would overflow, hypot returns HUGE and sets errno to ERANGE.
These error-handling procedures may be changed with the function matherr(.).
The cabs subroutine does not exist in the System V environment. For sqrt, see exp(.).