A++ » TMVA » ROOT::Math::RootFinder

class ROOT::Math::RootFinder


RootFinder

Root finding using Brents algorithm
(translated from CERNLIB function RZERO)


Function Members (Methods)

public:
virtual~RootFinder()
intIterate()
intIterations() const
const char*Name() const
doubleRoot() const
ROOT::Math::RootFinderRootFinder(ROOT::Math::RootFinder::EType type = RootFinder::kBRENT)
boolSetFunction(const ROOT::Math::IGradFunction& f, double xstart)
boolSetFunction(const ROOT::Math::IGenFunction& f, double xlow, double xup)
boolSetMethod(ROOT::Math::RootFinder::EType type = RootFinder::kBRENT)
boolSolve(int maxIter = 100, double absTol = 1.0E-8, double relTol = 1.0E-10)
boolSolve<int, double>(int& f, double& d, double start, int maxIter = 100, double absTol = 1.0E-8, double relTol = 1.0E-10)
boolSolve<int>(int& f, double min, double max, int maxIter = 100, double absTol = 1.0E-8, double relTol = 1.0E-10)
intStatus() const

Data Members

public:
static ROOT::Math::RootFinder::ETypekBRENT
static ROOT::Math::RootFinder::ETypekGSL_BISECTION
static ROOT::Math::RootFinder::ETypekGSL_BRENT
static ROOT::Math::RootFinder::ETypekGSL_FALSE_POS
static ROOT::Math::RootFinder::ETypekGSL_NEWTON
static ROOT::Math::RootFinder::ETypekGSL_SECANT
static ROOT::Math::RootFinder::ETypekGSL_STEFFENSON
private:
ROOT::Math::IRootFinderMethod*fSolvertype of algorithm to be used

Class Charts

Inheritance Chart:
ROOT::Math::RootFinder

Function documentation

RootFinder( MethodBase *method, Double_t rootMin, Double_t rootMax, Int_t maxIterations = 100, Double_t absTolerance = 0.0 )
Double_t Root( Double_t refValue )
 returns the root of the function