1HYPOT(3)                   Linux Programmer's Manual                  HYPOT(3)
2
3
4

NAME

6       hypot, hypotf, hypotl - Euclidean distance function
7

SYNOPSIS

9       #include <math.h>
10
11       double hypot(double x, double y);
12       float hypotf(float x, float y);
13       long double hypotl (long double x, long double y);
14
15       Link with -lm.
16

DESCRIPTION

18       The  hypot() function returns sqrt(x*x+y*y).  This is the length of the
19       hypotenuse of a right-angle triangle with sides of length x and  y,  or
20       the distance of the point (x,y) from the origin.
21

CONFORMING TO

23       SVr4, 4.3BSD, C99.  The float and long double variants are C99 require‐
24       ments.
25

SEE ALSO

27       cabs(3), sqrt(3)
28
29
30
31                                  2002-07-27                          HYPOT(3)
Impressum