hypotenuse function

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

Implementation

num hypotenuse(num x, num y) {
  return math.sqrt(math.pow(x, 2) + math.pow(y, 2));
}