HYPOT
NAME
hypot, hypotf, hypotl - Euclidean distance function
SYNOPSIS
#include <math.h>
I double hypot(double x , double y );
I float hypotf(float x , float y );
I long double hypotl(long double x , long double y );
Link with
-lm.
DESCRIPTION
The
R hypot ()
function returns
sqrt(x*x+y*y).
This is the length of the hypotenuse of a right-angle triangle
with sides of length
x
and
R y ,
or the distance of the point
(x,y)
from the origin.
CONFORMING TO
SVr4, 4.3BSD, C99.
The
float
and
long double
variants are C99 requirements.
SEE ALSO