NAME | SYNOPSIS | DESCRIPTION | ERRORS (due to Roundoff) | ATTRIBUTES | SEE ALSO
#include <math.h>double hypot(double x, double y);
The hypot and cabs functions compute the square root of (x*x+y*y) in such a way that underflow will not occur, and overflow occurs only if the final result justifies it.
hypot ([infin ] , v) = hypot (v, [infin ]) = +Infinity
for all values of v , including NaN .
Less than 0.97 ulp s. Consequently, hypot(5.0, 12.0) = 13.0 exactly; in general, hypot and cabs return an integer whenever an integer is expected.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | ERRORS (due to Roundoff) | ATTRIBUTES | SEE ALSO