distance function

double distance(
  1. double x,
  2. double y
)

Implementation

double distance(double x, double y) => math.sqrt(x * x + y * y);