摘要: syms f x a b c; f(x)=3*x^4-4*x^3-12*x^2; q(x)=a*x^2+b*x+c; %二点二次插值 x=[-1.2 -0.8]; ff=diff(diff(f)); dif=diff(f); for i=1:3 %[a b c]=solve('f(x(1))=q(x(1))','f(x(2))=q(x(2))','12*x(1)^3-12*x(1)^2-... 阅读全文
posted @ 2018-04-18 17:15 夜游星 阅读(2550) 评论(0) 推荐(0) 编辑