30 #ifndef ROOT_Math_BrentRootFinder 31 #define ROOT_Math_BrentRootFinder 97 bool Solve(
int maxIter = 100,
double absTol = 1
E-8,
double relTol = 1
E-10);
118 const char*
Name()
const;
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
bool Solve(int maxIter=100, double absTol=1E-8, double relTol=1E-10)
Returns the X value corresponding to the function value fy for (xmin<x<xmax).
Namespace for new ROOT classes and functions.
const char * Name() const
Return name of root finder algorithm ("BrentRootFinder").
Interface for finding function roots of one-dimensional functions.
const IGenFunction * fFunction
double Root() const
Returns root value.
void SetLogScan(bool on)
Set a log grid scan (default is equidistant bins) will work only if xlow > 0.
int Iterations() const
Return number of iteration used to find minimum.
int Status() const
Returns status of last estimate.
constexpr Double_t E()
Base of natural log: .
Class for finding the root of a one dimensional function using the Brent algorithm.
BrentRootFinder()
Default Constructor.
virtual bool SetFunction(const ROOT::Math::IGradFunction &, double)
Sets the function for algorithms using derivatives.
Namespace for new Math classes and functions.
static void SetDefaultNSearch(int n)
set number of times the bracketing search in combination with is done to find a good interval Default...
static void SetDefaultNpx(int npx)
set number of default Npx used at construction time (when SetNpx is not called) Default value is 100 ...
bool SetFunction(const ROOT::Math::IGenFunction &f, double xlow, double xup)
Sets the function for the rest of the algorithms.
void SetNpx(int npx)
Set the number of point used to bracket root using a grid.
virtual ~BrentRootFinder()
Default Destructor.