n = max([dEdtheta1, dEdtheta1, dEdtheta2])
theta0 = theta0 - step * dEdtheta0 / n
theta1 = theta1 - step * dEdtheta1 / n
theta2 = theta2 - step * dEdtheta2 / n
How to create a simple Gradient Descent algorithm