简介:本程序用牛顿插值法对函数表,X 1 3 2y 1 2 -1X 值选取为 1.5 测试本程序。源程序:#include #include void main() char L; do double M100100; double x100,y100; double X=1,xx=0,w=1,N=0,P,R=1; int n; coutn; for(int i=0;ixi; coutyi; Mi0=xi; Mi1=yi; for( int j=2;jxx; for(i=0;iL; while(L=y); 测试结果: