00001 #ifndef __TPolynomial_h__
00002 #define __TPolynomial_h__
00003 #include "Riostream.h"
00004 #include "TMath.h"
00005 #include "TString.h"
00006 #include "TF1.h"
00007
00008 namespace TPolynomial {
00009 void MakePolySeries(Double_t x, Int_t type, Int_t Np, Double_t *P);
00010 Double_t CalcPoly(Double_t *x, Double_t *par);
00011 TF1 *MakePoly(TString Name = "Tcheb", Int_t Npar = 3, Int_t R = 1, Double_t xmin = -0.5, Double_t xmax = 0.5);
00012 TF1 *MakePol(const Int_t N=2, const Char_t *X = "log(x)", TString type = "PL", Int_t i0=0);
00013 void GetFunc(TF1 *func);
00014 };
00015 #endif