牛顿法迭代公式:Matlab代码:function[x1,k]=newton(x1,eps)hs=inline((x-1)^4+y^2);写入函数ezcontour(hs,[-1010-1010]);建立坐标系holdon;显示图像symsxy定义变量f=(x-1)^4+y^2;定义函数grad1=jacobian(f,[x,y]);求f的一阶梯度grad2=jacobian(grad1,[x,y]);求f的二阶梯度k=0;迭代初始值while1循环grad1z=subs(subs(grad1,x,x1(1)),y,x1(2));给f一阶梯度赋初值grad2z=subs(subs(grad2,x,x1(1)),y,x1(2));给f二阶梯度赋初值x2=...