PARTONS/NumA++
|
Numerical Analysis C++ routines
|
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) |
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.
|
inline |