数值计算方法 中牛顿 插值的源代码 #include using namespace std; const int N = 4; void main() { double x[N] = {-2,0,1,2}; double y[N] = { 17, 1, 2, 19 }; double f[N][N] = {0}; double b[N]; double t=0.9; double ft; for (int i = 0; i < N; i++) //计算0阶差商 { f[i][0] = y[i];