NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ERRORS (due to Round-off) | ATTRIBUTES | SEE ALSO
$(NUCLEUS_DIR)/lib/libm.a #include <math.h>double hypot(double x, double y);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
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.
For all values of v , including NaN :
hypot [infin ] v() = hypot v [infin ]() = +Infinity
Less than 0.97 ulp s ( U nit in the L ast P lace). 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 | API RESTRICTIONS | DESCRIPTION | ERRORS (due to Round-off) | ATTRIBUTES | SEE ALSO