Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=[0.6 0.7 0.8 0.9 1.0];
- y=[1.433329 1.632316 1.896481 2.247908 2.718282];
- c=newtdd(x,y,5);
- P4_082=nest(4,c,0.82,[0.6 0.7 0.8 0.9]);
- P4_098=nest(4,c,0.98,[0.6 0.7 0.8 0.9]);
- f5=@(x) -8*x*(4*x^4+20*x^2+15)*exp(x^2);
- f_5max=fminbnd(f5,0.6,1); %%这边可能有问题
- g=@(x) exp(x^2);
- h=@(x) (x-0.6)*(x-0.7)*(x-0.8)*(x-0.9)*(x-1);
- Ec1=f_5max*h(0.82)/120 %%这边与答案结果不同
- Er1=abs(P4_082-g(0.82))
- Ec2=f_5max*h(0.98)/120 %%这边与答案结果不同
- Er2=abs(P4_098-g(0.98))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement