sqrt((x1 - x2)^2 + (y1-y2)^2) code example Example 1: sqrt(2)^2 sqrt(a)^2 = a Example 2: sqrt(x) = 2 sqrt(x) = a x = a^2