📄 testnewtondif.cpp
字号:
#include<iostream>
#include<math.h>
#include "NewtonDif.h"
using namespace std;
int main()
{
NewtonDif po;
double tx[6]={1940,1950,1960,1970,1980,1990};
double ty[6]={132165,151326,179323,203302,226542,249633};
po.ForwardDif(5,tx,ty);
cout<<po.GetValue(1930)<<endl;
po.BackwardDif(5,tx,ty);
cout<<po.GetValue(2010)<<endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -