HYPOT
Section: Linux Programmer's Manual (3)
Updated: 2002-07-27
Index
Return to Main Contents
NAME
hypot, hypotf, hypotl - Euclidean distance function
SYNOPSIS
#include <math.h>
double hypot(double x, double y);
float hypotf(float x, float y);
long double hypotl (long double x, long double y);
Link with -lm.
DESCRIPTION
The
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
y,
or the distance of the point
(x,y)
from the origin.
CONFORMING TO
SVID 3, BSD 4.3, C99.
The float and the long double variants are C99 requirements.
SEE ALSO
cabs(3),
sqrt(3)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- CONFORMING TO
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 00:12:37 GMT, May 13, 2005
www.fiveanddime.net