#include "TMath.h" #include "TF1.h" #include "TCanvas.h" #include #include "TLegend.h" #include "TLegendEntry.h" #include "Math/IFunction.h" #include "Math/SpecFuncMathMore.h" #include #include #include "TSystem.h" // // void Cheby(){ gROOT->Reset(); gSystem->Load("libMathMore"); const Double_t a=0.0, b=0.7; const Int_t n=8; const Double_t coeff[] = {1.2,0.1,0.03,0.007,0.002,0.0004,0.0001,0.00003}; // Cheb = new TF1("Cheb", "ROOT::Math::Chebyshev(x, [0], [1], [2], [3])", -100,100); // Cheb->SetParameters(coeff, a, b, n); // cout << ROOT::Math::Chebyshev(0.5,coeff, a, b, n) << endl; // cout << Cheb(0.5) << endl; }