hypot
hypot(a, b, c, ...)
hypot([a, b, c, ...])
Calculate the hypotenusa of a list with values.
Try it yourself:
$1 | hypot(3, 4)
| |
$2 | sqrt(3^2 + 4^2)
| |
$3 | hypot(-2)
| |
$4 | hypot([3, 4, 5])
|