Advertisement
RUNQ_W

matlab 误差上界

Mar 27th, 2024
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.50 KB | None | 0 0
  1. x=[0.6 0.7 0.8 0.9 1.0];
  2. y=[1.433329 1.632316 1.896481 2.247908 2.718282];
  3. c=newtdd(x,y,5);
  4.  
  5. P4_082=nest(4,c,0.82,[0.6 0.7 0.8 0.9]);
  6. P4_098=nest(4,c,0.98,[0.6 0.7 0.8 0.9]);
  7.  
  8.  
  9. f5=@(x) -8*x*(4*x^4+20*x^2+15)*exp(x^2);
  10. f_5max=fminbnd(f5,0.6,1);       %%这边可能有问题
  11. g=@(x) exp(x^2);
  12. h=@(x) (x-0.6)*(x-0.7)*(x-0.8)*(x-0.9)*(x-1);
  13. Ec1=f_5max*h(0.82)/120  %%这边与答案结果不同
  14. Er1=abs(P4_082-g(0.82))
  15. Ec2=f_5max*h(0.98)/120  %%这边与答案结果不同
  16. Er2=abs(P4_098-g(0.98))
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement