31#ifndef ROOT_Math_GSLRootFinder
32#define ROOT_Math_GSLRootFinder
48 class GSLFunctionWrapper;
87#if defined(__MAKECINT__) || defined(G__DICTIONARY)
89 std::cerr <<
"GSLRootFinder - Error : this method must be used with a Root Finder algorithm using derivatives" << std::endl;
111 bool Solve(
int maxIter = 100,
double absTol = 1
E-8,
double relTol = 1
E-10);
121 const char *
Name()
const;
Wrapper class to the gsl_function C structure.
Root-Finder implementation class using GSL.
Base class for GSL Root-Finding algorithms for one dimensional functions which do not use function de...
double(* GSLFuncPointer)(double, void *)
GSLFunctionWrapper * fFunction
int Iterations() const
Return number of iterations.
bool SetFunction(const IGenFunction &f, double xlow, double xup)
Sets the function for the rest of the algorithms.
void SetSolver(GSLRootFSolver *s)
int Status() const
Return the status of last root finding.
GSLRootFinder & operator=(const GSLRootFinder &)
const char * Name() const
double GSLRootFinder::XLower() const { return fXlow; }
int Iterate()
This method is implemented only by the GSLRootFinder and GSLRootFinderDeriv classes and will return a...
double Root() const
Returns the previously calculated root.
bool Solve(int maxIter=100, double absTol=1E-8, double relTol=1E-10)
Find the root.
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Interface (abstract class) for one-dimensional functions providing a gradient calculation.
Interface for finding function roots of one-dimensional functions.
virtual bool SetFunction(const ROOT::Math::IGradFunction &, double)
Sets the function for algorithms using derivatives.
Namespace for new Math classes and functions.
static constexpr double s
constexpr Double_t E()
Base of natural log: