//-----------------------------
//Interpolation Functions
//-----------------------------
//19.04.2004 $ Serkov Alexander
//-----------------------------
#include <stdlib.h>
#include <math.h>
//-----------------------------
#ifndef __ILIB_H__
#define __ILIB_H__
//-----------------------------
typedef long double DOUBLE;
typedef unsigned long UINT32;
//-----------------------------
typedef DOUBLE(*MATHFUNC)(DOUBLE);
//-----------------------------
typedef struct
{
	DOUBLE x,y;
} POINT;
//-----------------------------
typedef struct
{
	DOUBLE *p;
	UINT32 Count;
} POLINOM;
//-----------------------------
typedef struct
{
	POINT *Points;
	DOUBLE *L;
	UINT32 Count;
} POINTS;
//-----------------------------
POINTS *AllocPoints(UINT32 n);
POINTS *BuildPoints(MATHFUNC f,DOUBLE from,DOUBLE to,DOUBLE step);
void FreePoints(POINTS *points);

POLINOM *BuildPolinom(POINTS *points);
void FreePolinom(POLINOM *p);
DOUBLE CalcPolinom(POLINOM *p,DOUBLE x);
//-----------------------------
#endif
Соседние файлы в папке Interpolation
  • #
    09.05.20143.9 Кб39ILib.c
  • #
    09.05.20141.04 Кб39ILib.h
  • #
    09.05.20144.5 Кб39Interpolation.dsp
  • #
    09.05.2014551 б40Interpolation.dsw
  • #
    09.05.201433.79 Кб39Interpolation.ncb
  • #
    09.05.201448.64 Кб40Interpolation.opt
  • #
    09.05.2014947 б39main.c