s<sub>j+1</sub>*s<sub>j</sub>+1Be careful with the MATLAB syntax: for i = 1:10 COLON not COMMA!
1/(1+e^(-z))-y*log(htheta(x))-(1-y)*log(1-htheta(x))alphalambda*sigma(thetaj^2), theta from 1 to nNew gradient descent with regularized term: thetaj=thetaj(1-alphalambda/m)