16 #ifndef ROOT_Math_RichardsonDerivator 17 #define ROOT_Math_RichardsonDerivator double Derivative3(double x)
Returns the third derivative of the function at point x, computed by Richardson's extrapolation metho...
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Namespace for new ROOT classes and functions.
double DerivativeForward(double x)
Computation of the first derivative using a forward formula.
double Derivative2(double x)
Returns the second derivative of the function at point x, computed by Richardson's extrapolation meth...
void SetFunction(const IGenFunction &f)
Set function for derivative calculation (copy the function if option has been enabled in the construc...
double Derivative1(double x)
Returns the first derivative of the function at point x, computed by Richardson's extrapolation metho...
const IGenFunction * fFunction
double DerivativeBackward(double x)
Computation of the first derivative using a backward formula.
~RichardsonDerivator()
Destructor: Removes function if needed.
double DerivativeBackward(const IGenFunction &f, double x, double h)
Computation of the first derivative using a forward formula.
RichardsonDerivator(double h=0.001)
Default Constructor.
Namespace for new Math classes and functions.
double operator()(double x)
RichardsonDerivator & operator=(const RichardsonDerivator &rhs)
Assignment operator.
void SetStepSize(double h)
Set step size for derivative calculation.
double Error() const
Returns the estimate of the absolute Error of the last derivative calculation.
User class for calculating the derivatives of a function.