Include:
Prototype: double hypot(double x, double y);
Returns: the length of the hypotenuse if successful,
or HUGE_VAL on overflow.
errno: ERANGE
See also: cabs
The hypot function calculates the length of the hypotenuse of a right
triangle, given the length of the two sides x and y. A call to hypot is
equivalent to the following: sqrt(x*x + y*y);
Return Value
The function returns the length of the hypotenuse. If an overflow results,
hypot returns HUGE_VAL and sets errno to ERANGE.