hypot(3m)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 and functions return
sqrt(x*x + y*y),
taking precautions against unwarranted overflows.
Return Values
The and functions return HUGE_VAL and sets errno to ERANGE when the
correct value would overflow.
Environment
When your program is compiled using the System V environment, if the
correct value would overflow, returns HUGE and sets errno to ERANGE.
These error-handling procedures may be changed with the function
The subroutine does not exist in the System V environment. For sqrt,
see
See Alsoexp(3m)
VAX hypot(3m)