$val) { $distance += ($val - $b[$i]) ** 2; } return sqrt((float) $distance); } }