?? interpolation1variablenotisometry .cpp
字號:
//Interpolation1VariableNotIsometry.cpp
//一元全區間不等距插值
#include <iostream.h> //輸入輸出流頭文件
#include "Interpolation.h" //插值頭文件
void main()
{
double t(0.63), s;
double x[10] =
{
0.10, 0.15, 0.25, 0.40, 0.50,
0.57, 0.70, 0.85, 0.93, 1.00
};
double y[10] =
{
0.904837, 0.860708, 0.778801, 0.670320, 0.606531,
0.565525, 0.496585, 0.427415, 0.394554, 0.367879
};
valarray<double> yy(y,10);
valarray<double> xx(x,10);
cout << " Interpolation1VariableNotIsometry()" << endl << endl;
s = Interpolation1VariableNotIsometry(xx,yy,t);
cout<<" t = " << t << "\t s = "<< s << endl << endl;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -