📄 insert.h
字号:
//警告:如未了解源程序结构,不得轻易修改本文件的内容!
//名称:Insert.h
//类实现文件:Insert.cpp
//作用:拉格朗日插值法、变步长线性插值法类定义文件
//内容:1、坐标点结构
// 2、拉格朗日插值类
// 构造函数:Lagrange(GivenPoint *,double,int);
// 执行函数:double DoIt(void);
// 3、分段线性插值类
// 执行函数:static void Separate(double *,double *,int,double);
//梁霄(C) 11/27/2005
#include<iostream.h>
#include<math.h>
struct GivenPoint
{
double X;
double Y;
};
class Lagrange
{
private:
GivenPoint * points;
double root;
int len;
public:
Lagrange(GivenPoint *,double,int);
double DoIt(void);
};
class SepLinear
{
public:
static void Separate(double *,double *,int,double);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -