PARTONS/NumA++  
Numerical Analysis C++ routines
Public Member Functions | List of all members
NumA::Newton Class Reference

The code supports on the example of the python library : scipy. More...

Public Member Functions

template<class OBJ , typename FUNC , typename DERIV >
double solve (OBJ *object, FUNC function, std::vector< double > &funcParameters, double x0, DERIV derivative=0, const double absTolerance=1.48e-8, const size_t maxIteration=50)
 

Detailed Description

The code supports on the example of the python library : scipy.

Find a zero using the Newton-Raphson or secant method.

Find a zero of the function func given a nearby starting point x0. The Newton-Raphson method is used if the derivative fprime of func is provided, otherwise the secant method is used.

Member Function Documentation

◆ solve()

template<class OBJ , typename FUNC , typename DERIV >
double NumA::Newton::solve ( OBJ *  object,
FUNC  function,
std::vector< double > &  funcParameters,
double  x0,
DERIV  derivative = 0,
const double  absTolerance = 1.48e-8,
const size_t  maxIteration = 50 
)
inline

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