32 #ifndef ROOT_Math_Derivator 49 double x0 = std::abs(x[icoord]);
52 double step = (x0>0) ? std::max(
fgEps* x0, 8.0*kPrecision*(x0 + kPrecision) ) : kPrecision;
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
double DoDerivative(const double *x, unsigned int icoord) const
function to evaluate the derivative with respect each coordinate.
const IMultiGenFunction * fFunc
static void SetDerivPrecision(double eps)
precision value used for calculating the derivative step-size h = eps * |x|.
static double GetDerivPrecision()
get precision value used for calculating the derivative step-size
double Eval(double x, double h=1E-8) const
Computes the numerical derivative of a function f at a point x.
Namespace for new Math classes and functions.