#ifndef ROOT_Math_RichardsonDerivator
#define ROOT_Math_RichardsonDerivator
#include <Math/IFunction.h>
namespace ROOT {
namespace Math {
class RichardsonDerivator {
public:
~RichardsonDerivator();
RichardsonDerivator(double h = 0.001);
RichardsonDerivator(const ROOT::Math::IGenFunction & f, double h = 0.001, bool copyFunc = false);
RichardsonDerivator(const RichardsonDerivator & rhs);
RichardsonDerivator & operator= ( const RichardsonDerivator & rhs);
double Error () const { return fLastError; }
double Derivative1 (double x);
double operator() (double x) { return Derivative1(x); }
double Derivative1(const IGenFunction & f, double x, double h) {
fFunction = &f;
fStepSize = h;
return Derivative1(x);
}
double Derivative2 (double x);
double Derivative2(const IGenFunction & f, double x, double h) {
fFunction = &f;
fStepSize = h;
return Derivative2(x);
}
double Derivative3 (double x);
double Derivative3(const IGenFunction & f, double x, double h) {
fFunction = &f;
fStepSize = h;
return Derivative3(x);
}
void SetFunction (const IGenFunction & f);
void SetStepSize (double h) { fStepSize = h; }
protected:
bool fFunctionCopied;
double fStepSize;
double fLastError;
const IGenFunction* fFunction;
};
}
}
#endif /* ROOT_Math_RichardsonDerivator */
RichardsonDerivator.h:100 RichardsonDerivator.h:101 RichardsonDerivator.h:102 RichardsonDerivator.h:103 RichardsonDerivator.h:104 RichardsonDerivator.h:105 RichardsonDerivator.h:106 RichardsonDerivator.h:107 RichardsonDerivator.h:108 RichardsonDerivator.h:109 RichardsonDerivator.h:110 RichardsonDerivator.h:111 RichardsonDerivator.h:112 RichardsonDerivator.h:113 RichardsonDerivator.h:114 RichardsonDerivator.h:115 RichardsonDerivator.h:116 RichardsonDerivator.h:117 RichardsonDerivator.h:118 RichardsonDerivator.h:119 RichardsonDerivator.h:120 RichardsonDerivator.h:121 RichardsonDerivator.h:122 RichardsonDerivator.h:123 RichardsonDerivator.h:124 RichardsonDerivator.h:125 RichardsonDerivator.h:126 RichardsonDerivator.h:127 RichardsonDerivator.h:128 RichardsonDerivator.h:129 RichardsonDerivator.h:130 RichardsonDerivator.h:131 RichardsonDerivator.h:132 RichardsonDerivator.h:133 RichardsonDerivator.h:134 RichardsonDerivator.h:135 RichardsonDerivator.h:136 RichardsonDerivator.h:137 RichardsonDerivator.h:138 RichardsonDerivator.h:139 RichardsonDerivator.h:140 RichardsonDerivator.h:141 RichardsonDerivator.h:142 RichardsonDerivator.h:143 RichardsonDerivator.h:144 RichardsonDerivator.h:145 RichardsonDerivator.h:146 RichardsonDerivator.h:147 RichardsonDerivator.h:148 RichardsonDerivator.h:149 RichardsonDerivator.h:150 RichardsonDerivator.h:151 RichardsonDerivator.h:152 RichardsonDerivator.h:153 RichardsonDerivator.h:154 RichardsonDerivator.h:155 RichardsonDerivator.h:156 RichardsonDerivator.h:157 RichardsonDerivator.h:158 RichardsonDerivator.h:159 RichardsonDerivator.h:160 RichardsonDerivator.h:161 RichardsonDerivator.h:162 RichardsonDerivator.h:163 RichardsonDerivator.h:164 RichardsonDerivator.h:165 RichardsonDerivator.h:166 RichardsonDerivator.h:167 RichardsonDerivator.h:168 RichardsonDerivator.h:169 RichardsonDerivator.h:170 RichardsonDerivator.h:171 RichardsonDerivator.h:172 RichardsonDerivator.h:173 RichardsonDerivator.h:174 RichardsonDerivator.h:175 RichardsonDerivator.h:176 RichardsonDerivator.h:177 RichardsonDerivator.h:178 RichardsonDerivator.h:179 RichardsonDerivator.h:180 RichardsonDerivator.h:181 RichardsonDerivator.h:182 RichardsonDerivator.h:183 RichardsonDerivator.h:184 RichardsonDerivator.h:185 RichardsonDerivator.h:186 RichardsonDerivator.h:187 RichardsonDerivator.h:188 RichardsonDerivator.h:189 RichardsonDerivator.h:190 RichardsonDerivator.h:191 RichardsonDerivator.h:192 RichardsonDerivator.h:193 RichardsonDerivator.h:194 RichardsonDerivator.h:195 RichardsonDerivator.h:196 RichardsonDerivator.h:197 RichardsonDerivator.h:198 RichardsonDerivator.h:199 RichardsonDerivator.h:200 RichardsonDerivator.h:201 RichardsonDerivator.h:202 RichardsonDerivator.h:203 RichardsonDerivator.h:204 RichardsonDerivator.h:205 RichardsonDerivator.h:206 RichardsonDerivator.h:207 RichardsonDerivator.h:208 RichardsonDerivator.h:209 RichardsonDerivator.h:210 RichardsonDerivator.h:211 RichardsonDerivator.h:212 RichardsonDerivator.h:213 RichardsonDerivator.h:214 RichardsonDerivator.h:215 RichardsonDerivator.h:216 RichardsonDerivator.h:217 RichardsonDerivator.h:218 RichardsonDerivator.h:219 RichardsonDerivator.h:220