HYPOT(3m,L) AIX Technical Reference HYPOT(3m,L)
-------------------------------------------------------------------------------
hypot, cabs
PURPOSE
Computes the euclidean distance function and complex absolute value.
LIBRARY
Math Library (libm.a)
SYNTAX
#include
double hypot (x, y)
double x, y;
double cabs (z)
struct {double x,y} z
DESCRIPTION
The hypot and cabs subroutines take precautions against overflows while
computing the value of:
SQRT(x**2 + y**2)
If the correct value does overflow, then hypot returns HUGE and sets errno to
ERANGE.
You can change the error-handling procedures by supplying a matherr subroutine.
See "matherr" for more information.
ERROR CONDITIONS
The hypot subroutine may fail if one or more of the following are true:
EDOM The value of x or y is NaN.
ERANGE The value to be returned would have caused overflow.
RELATED INFORMATION
In this book: "cbrt, exp, expm1, log, log10, log1p, pow, sqrt."
Processed November 7, 1990 HYPOT(3m,L) 1