hypot(3M)hypot(3M)NAMEhypotf(), hypotl(), hypotw(), hypotq() - Euclidean distance functions
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
computes the square root of the sum of the squares of x and y, without
undue overflow or underflow.
Integrity Server Only
is a version of it takes arguments and returns a result.
is a version of it takes arguments and returns a result.
is an version of it takes arguments and returns an result.
is equivalent to on HP-UX systems.
USAGE
To use any of these functions, compile either with the default option
or with the and options.
To use (for Integrity servers) or compile also with the option.
Make sure your program includes Link in the math library by specifying
on the compiler or linker command line.
RETURN VALUE
and are equivalent.
is equivalent to
returns +Inf, even if y is a NaN.
If both arguments are NaNs, then returns a NaN.
returns infinity in lieu of a value whose magnitude is too large, and
raises the overflow and inexact exceptions.
raises the underflow and inexact exceptions whenever a result is tiny
(essentially denormal or zero) and thereby suffers loss of accuracy,
and may raise those exceptions if the result is merely tiny.
raises the inexact exception whenever a rounded result does not equal
the mathematical result.
ERRORS
No errors are defined.
SEE ALSOcabs(3M), fabs(3M), sqrt(3M), math(5).
STANDARDS CONFORMANCE
: SVID3, XPG4.2, ISO/IEC C99 (including Annex F, ``IEC 60559 floating-
point arithmetic'')
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithâ
metic'')
hypot(3M)