32 #ifndef ROOT_Math_Derivator
52 double step = (x0>0) ?
std::max(
fgEps* x0, 8.0*kPrecision*(x0 + kPrecision) ) : kPrecision;
double Eval(double x, double h=1E-8) const
Computes the numerical derivative of a function f at a point x.
const IMultiGenFunction * fFunc
static void SetDerivPrecision(double eps)
precision value used for calculating the derivative step-size h = eps * |x|.
double DoDerivative(const double *x, unsigned int icoord) const
function to evaluate the derivative with respect each coordinate.
static Vc_ALWAYS_INLINE Vector< T > abs(const Vector< T > &x)
static double GetDerivPrecision()
get precision value used for calculating the derivative step-size
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)