I have the following code, which uses gradient descent to find the global minimum of y = (x+5)^2:
y = (x+5)^2
cur_x = 3 # the algorithm star