def best_func_ever coef new_x1 new_y1 coef coef new_x2 new_y2 x-4 coef

1
2
3
4
5
def best_func_ever((x, y)):
coef = 3
new_x1, new_y1 = (x+4)/coef, (y+4)/coef
new_x2, new_y2 = (x-4)/coef, (y-4)/coef
return np.exp(-new_x1**2 - new_y1 ** 2)*30 + np.exp(-new_x2**2 - new_y2 ** 2)*30 + x + y + 1