HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
h
hypot(3M) hypot(3M)
NAME
hypot() - Euclidean distance function
SYNOPSIS
#include <math.h>
double hypot(double x, double y);
DESCRIPTION
hypot() returns sqrt(x*x+y*y), taking precautions againstunwarranted overflows.
The ISO/ANSI C committee has approved the hypot() function for inclusion in the C9X draft standard.
To use this function, compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE
options. Make sure your program includes <math.h>. Link in the math library by specifying -lm on the
compiler or linker command line.
RETURN VALUE
If x or y is NaN, hypot() returns NaN.
If the correct value would overflow, hypot()
returns HUGE_VAL.
If the correct value after rounding would be smaller in magnitude than
MINDOUBLE, hypot() returns
zero.
ERRORS
No errors are defined.
SEE ALSO
sqrt(3M), math(5), values(5).
STANDARDS CONFORMANCE
hypot(): SVID3, XPG4.2
Section 3434 1 HP-UX Release 11i: December 2000
___
___