hypot

Calculates the length of the hypotenuse of a right-angled triangle with sides of length x and y. The hypotenuse is the value of the square root of the sums of the squares of x and y:

sqrt($(POW x, 2) + $(POW y, 2))

Note that hypot(x, y), hypot(y, x) and hypot(x, -y) are equivalent.

Special Values
xyhypot(x, y)invalid?
x±0.0|x|no
$(PLUSMNINF)y+∞no
$(PLUSMNINF)NaN+∞no
real
hypot
(
real x
,
real y
)

Meta