White RoomNEW

Two Steps Downhill

Minimize f(w)=w2f(w) = w^2 by gradient descent from w0=3w_0 = 3.

w = 3.0
for _ in range(2):
    w = w - eta * grad(w)     # grad(w) is the derivative of w**2

What is w after the loop when eta = 0.1, and what happens instead when eta = 1.1?