Quick ?s
Cheat Sheets
Man Pages
The Lynx
Software
HYPOT(3)		   Linux Programmers Manual		     HYPOT(3)



NAME
       hypot, hypotf, hypotl - Euclidean distance function

SYNOPSIS
       #include 

       double hypot(double x, double y);
       float hypotf(float x, float y);
       long double hypotl(long double x, long double y);

       Link with -lm.

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

       hypot(), hypotf(), hypotl(): _BSD_SOURCE || _SVID_SOURCE ||
       _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE; or cc -std=c99

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
       SVr4, 4.3BSD, C99.  The float and long double variants are C99 require
       ments.

SEE ALSO
       cabs(3), sqrt(3)

COLOPHON
       This  page  is  part of release 3.05 of the Linux man-pages project.  A
       description of the project, and information about reporting  bugs,  can
       be found at http://www.kernel.org/doc/man-pages/.



				  2007-07-26			      HYPOT(3)




Yals.net is © 1999-2009 Crescendo Communications
Sharing tech info on the web for more than a decade!
This page was generated Thu Apr 30 17:05:27 2009