libm.info: hypot

Go forward to ilogb
Go backward to gamma
Go up to Math
Go to the top op libm

`hypot', `hypotf'--distance from origin

*Synopsis*
     #include <math.h>
     double hypot(double X, double Y);
     float hypotf(float X, float Y);
   *Description*
`hypot' calculates the Euclidean distance `sqrt(X*X + Y*Y)' between the
origin (0,0) and a point represented by the Cartesian coordinates
(X,Y).  `hypotf' differs only in the type of its arguments and result.
*Returns*
Normally, the distance value is returned.  On overflow, `hypot' returns
`HUGE_VAL' and sets `errno' to `ERANGE'.
   You can change the error treatment with `matherr'.
*Portability*
`hypot' and `hypotf' are not ANSI C.