StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TPolynomial.h
1 #ifndef __TPolynomial_h__
2 #define __TPolynomial_h__
3 #include "Riostream.h"
4 #include "TMath.h"
5 #include "TString.h"
6 #include "TF1.h"
7 
8 namespace TPolynomial {
9  void MakePolySeries(Double_t x, Int_t type, Int_t Np, Double_t *P);
10  Double_t CalcPoly(Double_t *x, Double_t *par);
11  TF1 *MakePoly(TString Name = "Tcheb", Int_t Npar = 3, Int_t R = 1, Double_t xmin = -0.5, Double_t xmax = 0.5);
12  TF1 *MakePol(const Int_t N=2, const Char_t *X = "log(x)", TString type = "PL", Int_t i0=0);
13  void GetFunc(TF1 *func);
14 };
15 #endif