用牛顿法matlab程序解题!

问题描述:

用牛顿法matlab程序解题!
用牛顿法求f=2×x1^2+x2^2-4×x1+2 的最小值

Newton-Raphson 求解非线性方程组matlab源程序matlab程序如下:function hom[P,iter,err]=newton('f','JF',[7.8e-001;4.9e-001; 3.7e-001],0.01,0.001,1000);disp(P);disp(iter);disp(err);function Y=f(x,y,z)Y=[x^...