Documentation Archive Developer
Search
ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



HYPOT(3)                 BSD Library Functions Manual                 HYPOT(3)

NAME
     hypot -- euclidean distance function

SYNOPSIS
     #include <math.h>

     double
     hypot(double x, double y);

     long double
     hypotl(long double x, long double y);

     float
     hypotf(float x, float y);

DESCRIPTION
     The hypot() function computes the sqrt(x*x+y*y) without undue overflow or
     underflow.

SPECIAL VALUES
     hypot(x, y) , hypot(y, x) , and hypot(x, -y) are equivalent.

     hypot(x, +-0) is equivalent to fabs(x).

     hypot(+-infinity, y) returns +infinity even if y is a NaN.

SEE ALSO
     cabs(3), math(3), sqrt(3)

STANDARDS
     The hypot() function conforms to ISO/IEC 9899:1999(E).

4th Berkeley Distribution      January 28, 2003      4th Berkeley Distribution