11 TNumDeriv(
const char *name):TNamed(name,
"") {fStep=0.01;fIArg=0;fOutLim=0;};
13 virtual Double_t Fcn(Double_t add=0.)=0;
14 Double_t DFcn(Double_t add=0.);
15 void SetOutLimit(
int lim=1) {fOutLim=lim ;}
16 void SetStep(Double_t step) {fStep =step ;}
17 void SetIArg(Int_t iarg) {fIArg =iarg ;}
18 Int_t GetIArg() {
return fIArg ;}
20 Double_t GetStep() {
return fStep ;}
21 static Double_t Tiny();
22 static Double_t Epsilon();
25 double numericalDerivative(
double x ,
double &delta,
double &error);
31 static Double_t fgTiny;
32 static Double_t fgEpsilon;
43 virtual Double_t Fcn(Double_t arg){
return pow(fX+arg,3);}
53 virtual Double_t Fcn(Double_t arg){
return fDT->DFcn(arg);}
61 #pragma link off all globals;
62 #pragma link off all classes;
63 #pragma link off all functions;
64 #pragma link C++ class TNumDeriv;
65 #pragma link C++ class TNumDeriv1Test;
66 #pragma link C++ class TNumDeriv2Test;
70 #endif //ROOT_TNumDeriv