Logo ROOT  
Reference Guide
No Matches
ROOT::Math::Roots::Bisection Class Reference

Roots::Bisection Bisection algorithm, simplest algorithm for bracketing the roots of a function, but slowest one.

See the GSL manual for more information

Definition at line 57 of file RootFinderAlgorithms.h.

Public Member Functions

 Bisection ()
 ~Bisection () override
- Public Member Functions inherited from ROOT::Math::GSLRootFinder
 GSLRootFinder ()
 ~GSLRootFinder () override
int Iterate () override
 This method is implemented only by the GSLRootFinder and GSLRootFinderDeriv classes and will return an error if it's not one of them.
int Iterations () const override
 Return number of iterations.
const char * Name () const override
 double GSLRootFinder::XLower() const { return fXlow; }
double Root () const override
 Returns the previously calculated root.
bool SetFunction (const IGenFunction &f, double xlow, double xup) override
 Sets the function for the rest of the algorithms.
virtual bool SetFunction (const ROOT::Math::IGenFunction &, double, double)
 Sets the function for the rest of the algorithms.
virtual bool SetFunction (const ROOT::Math::IGradFunction &, double)
 Sets the function for algorithms using derivatives.
bool SetFunction (GSLFuncPointer f, void *params, double xlow, double xup)
bool Solve (int maxIter=100, double absTol=1E-8, double relTol=1E-10) override
 Find the root.
int Status () const override
 Return the status of last root finding.
- Public Member Functions inherited from ROOT::Math::IRootFinderMethod
 IRootFinderMethod ()
 Default Constructor.
virtual ~IRootFinderMethod ()
 Default Destructor.

Private Member Functions

 Bisection (const Bisection &)
Bisectionoperator= (const Bisection &)

Additional Inherited Members

- Public Types inherited from ROOT::Math::GSLRootFinder
typedef double(* GSLFuncPointer) (double, void *)
- Protected Member Functions inherited from ROOT::Math::GSLRootFinder
void FreeSolver ()
void SetSolver (GSLRootFSolver *s)

#include <Math/RootFinderAlgorithms.h>

Inheritance diagram for ROOT::Math::Roots::Bisection:

Constructor & Destructor Documentation

◆ Bisection() [1/2]

ROOT::Math::Roots::Bisection::Bisection ( )

Definition at line 46 of file RootFinderAlgorithms.cxx.

◆ ~Bisection()

ROOT::Math::Roots::Bisection::~Bisection ( )

Definition at line 53 of file RootFinderAlgorithms.cxx.

◆ Bisection() [2/2]

ROOT::Math::Roots::Bisection::Bisection ( const Bisection )

Definition at line 59 of file RootFinderAlgorithms.cxx.

Member Function Documentation

◆ operator=()

Bisection & ROOT::Math::Roots::Bisection::operator= ( const Bisection rhs)

Definition at line 64 of file RootFinderAlgorithms.cxx.

Libraries for ROOT::Math::Roots::Bisection:

The documentation for this class was generated from the following files: