Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Math::Roots::Secant Class Reference

Secant algorithm, simplified version of Newton method, which does not require the derivative at every step.

See the GSL manual for more information

Definition at line 130 of file RootFinderAlgorithms.h.

Public Member Functions

 Secant ()
 
 ~Secant () override
 
- Public Member Functions inherited from ROOT::Math::GSLRootFinderDeriv
 GSLRootFinderDeriv ()
 
 GSLRootFinderDeriv (const GSLRootFinderDeriv &)=delete
 
 GSLRootFinderDeriv (GSLRootFinderDeriv &&)=delete
 
 ~GSLRootFinderDeriv () override
 
int Iterate () override
 iterate (return GSL_SUCCESS in case of successful iteration)
 
int Iterations () const override
 Return number of iterations.
 
const char * Name () const override
 Return name of root finder algorithm.
 
GSLRootFinderDerivoperator= (const GSLRootFinderDeriv &)=delete
 
GSLRootFinderDerivoperator= (GSLRootFinderDeriv &&)=delete
 
double Root () const override
 Returns the previously calculated root.
 
bool SetFunction (const IGradFunction &f, double xstart) override
 Sets the function for algorithms using derivatives.
 
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, GSLFuncPointer df, GSLFdFPointer fdf, void *p, double Root)
 
bool Solve (int maxIter=100, double absTol=1E-8, double relTol=1E-10) override
 Find the root (return false if failed)
 
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.
 

Additional Inherited Members

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

#include <Math/RootFinderAlgorithms.h>

Inheritance diagram for ROOT::Math::Roots::Secant:
[legend]

Constructor & Destructor Documentation

◆ Secant()

ROOT::Math::Roots::Secant::Secant ( )

Definition at line 111 of file RootFinderAlgorithms.cxx.

◆ ~Secant()

ROOT::Math::Roots::Secant::~Secant ( )
override

Definition at line 118 of file RootFinderAlgorithms.cxx.

Libraries for ROOT::Math::Roots::Secant:

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