matlab阻尼牛顿法例题知识分享.pdfVIP

  • 80
  • 0
  • 约1.27千字
  • 约 1页
  • 2021-03-24 发布于浙江
  • 举报
Use damped Newton method to find the minimum of . Select suitable initial point. Stopping error should not larger than = 0.01. Requirements: (1) Write Matlab codes to finish the algorithm (not use Matlab function directly). (2) Provide Matlab codes, the middle and the final results. Matlab Codes: syms x1 x2 x3 n; x=[ x1,x2,x3]; f=x1^2+4*x2^2+9*x3^2-2*x1+18*x3; g=[2*x1-2,8*x2,18*x3+18]; h=[2,0,0;0,8,0;0,0,18]; h0=inv(h); eps=0.01; k=0; tol=1; x0=[0,0,0]; while toleps g0=subs(g,x,x0); m=eval(norm(g0)); if meps

文档评论(0)

1亿VIP精品文档

相关文档