c/numeric/math/hypot

@1-3@ Computes the square root of the sum of the squares of and, without undue overflow or underflow at intermediate stages of the computation. @4@ Type-generic macro: If any argument has type, the long double version of the function is called. Otherwise, if any argument has integer type or has type, the double version of the function is called. Otherwise, the version of the function is called.

The value computed by this function is the length of the hypotenuse of a right-angled triangle with sides of length and, or the distance of the point  from the origin , or the magnitude of a complex number.

Return value
If no errors occur, the hypotenuse of a right-angled triangle,, is returned.

If a range error due to overflow occurs, huge_val,, or is returned.

If a range error due to underflow occurs, the correct result (after rounding) is returned.

Error handling
Errors are reported as specified in.

If the implementation supports IEEE floating-point arithmetic (IEC 60559),
 * ,, and are equivalent
 * if one of the arguments is ±0, is equivalent to  called with the non-zero argument
 * if one of the arguments is ±∞, returns +∞ even if the other argument is NaN
 * otherwise, if any of the arguments is NaN, NaN is returned