Complete gradient descent for 1 variable