calc.h

来自「综合利用三次法和blewitt法检测与修复周跳」· C头文件 代码 · 共 20 行

H
20
字号
#ifndef _CALC_H_
#define _CALC_H_


#define LEASTSQUARE				0
#define CHEBYSHEV				1

#define POLYFIT_ERR_PARAMETER	-1
#define POLYFIT_ERR_TAG			-2

#define MAXM					19

int PolyFit( const double x[], const double y[], const long int N, const int M,
			 double a[], double dt[], int tag );

double PolyVal( double x, const double a[], const unsigned int M );

double RoundOff( double x );

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?