ROOT   Reference Guide
Searching...
No Matches
ROOT::Math::Roots::Newton Class Reference

a Newton algorithm, which computes the derivative at each iteration See the GSL manual for more information

Definition at line 132 of file RootFinderAlgorithms.h.

Public Member Functions

Newton ()

virtual ~Newton ()

Public Member Functions inherited from ROOT::Math::GSLRootFinderDeriv
GSLRootFinderDeriv ()

virtual ~GSLRootFinderDeriv ()

int Iterate ()
iterate (return GSL_SUCCESS in case of successful iteration)

int Iterations () const
Return number of iterations.

const char * Name () const
Return name of root finder algorithm.

double Root () const
Returns the previously calculated root.

bool SetFunction (const IGradFunction &f, double xstart)
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)
Find the root (return false if failed)

int Status () const
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

Newton (const Newton &)

Newtonoperator= (const Newton &)

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::Newton:
[legend]

◆ Newton() [1/2]

 ROOT::Math::Roots::Newton::Newton ( )

Definition at line 133 of file RootFinderAlgorithms.cxx.

◆ ~Newton()

 ROOT::Math::Roots::Newton::~Newton ( )
virtual

Definition at line 140 of file RootFinderAlgorithms.cxx.

◆ Newton() [2/2]

 ROOT::Math::Roots::Newton::Newton ( const Newton & )
private

Definition at line 146 of file RootFinderAlgorithms.cxx.

◆ operator=()

 Newton & ROOT::Math::Roots::Newton::operator= ( const Newton & rhs )
private

Definition at line 151 of file RootFinderAlgorithms.cxx.

Libraries for ROOT::Math::Roots::Newton:

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