[Contents] [Previous Section] [Next Section] [Index]


hypot-Euclidean Distance

Interface

F_TYPE hypot (F_TYPE x, F_TYPE y)

Description

hypot() computes the length of the hypotenuse of a right triangle, where x and y represent the perpendicular sides of the triangle.

hypot(x,y) is defined as the square root of (x**2 + y**2) and returns the same value as cabs(x,y).

Exceptions


Exceptional Argument                 Routine Behavior

sqrt(x**2 + y**2) > max_float        Overflow



See Also

Appendix A, Critical Floating-Point Values


[Contents] [Previous Section] [Next Section] [Index]