I have everything working in Homework 2 except for the termination of the
Gradient Descent while loop.
For example, polynomial *(x-2)^2 + 1*, has gradient descent *2.5, 2.25,
2.125 .... 2 with x = 3* and *learning rate = 0.25*. Eventually the x value
reaches 2, and is a never ending loop. If I set while(learning_rate>2) it
will terminate, but how do I put that into effect for all values of x?