Calculates the Euclidean distance function.
#include <math.h> double hypot(double x, double y);
These functions shall compute the value of the square root of x2+ y2 without undue overflow or underflow.
An application wishing to check for error situations should set errno to zero and call feclearexcept(FE_ALL_EXCEPT) before calling these functions. On return, if errno is non-zero or fetestexcept (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) is non-zero, an error has occurred.
x and y.
x or y is -Inf, +Inf shall be returned (even if one of x or y is NaN).
x or y is NaN, and the other is not -Inf, a NaN shall be returned.
| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 3.0 | intime/rt/include/math.h | math.h | clib.lib |