hypot function

num hypot(
  1. num x,
  2. num y
)

Computes sqrt(x^2 + y^2) without intermediate overflow or underflow.

Implementation

num hypot(num x, num y) => math.sqrt(x * x + y * y);