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;
Class for finding the root of a one dimensional function using the Brent algorithm.
const char * Name() const
Return name of root finder algorithm ("BrentRootFinder").
double Root() const
Returns root value.
BrentRootFinder()
Default Constructor.
int Status() const
Returns status of last estimate.
const IGenFunction * fFunction
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).
static void SetDefaultNpx(int npx)
set number of default Npx used at construction time (when SetNpx is not called) Default value is 100
static void SetDefaultNSearch(int n)
set number of times the bracketing search in combination with is done to find a good interval Default...
void SetNpx(int npx)
Set the number of point used to bracket root using a grid.
bool SetFunction(const ROOT::Math::IGenFunction &f, double xlow, double xup)
Sets the function for the rest of the algorithms.
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.
virtual ~BrentRootFinder()
Default Destructor.
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
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.
constexpr Double_t E()
Base of natural log: