hypot
hypot
> Functions
Returns the hypotenuse of the right triangle with sides x* and *y. Equivalent to sqrt(x * 2 + y * 2).
Parameters
- x: The x value.
- y: The y value.
Return
- hypotenuse:
sqrt(x * 2 + y * 2).
Examples
hypot(1, 1) // sqrt(2) hypot(3, 4) // 5
See also