derivativeRootFinder.hpp File Reference

File contains implementation of root finder algorithm using derivative. More...

#include <gsl/gsl_errno.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_roots.h>
#include <mathematics/numericalAlgorithms/GslFunctionAdapter.hpp>
#include <mathematics/numericalAlgorithms/GslFunctionFdfAdapter.hpp>
#include <gsl/gsl_deriv.h>

Go to the source code of this file.

Enumerations

enum  julian::DerivativeRootFinder { julian::DerivativeRootFinder::NEWTON_RAPHSON, julian::DerivativeRootFinder::SECANT, julian::DerivativeRootFinder::STEFFENSEN }
 Types of root finding algorithms using derivatives. More...
 

Functions

template<typename T , typename U >
double julian::derivativeRootFinder (T f, U df, double x_0, DerivativeRootFinder type, double precision=1e-12, int max_iter=100)
 Function finds roots basing on derivative. More...
 
template<typename T >
double julian::derivativeRootFinder (T f, double x_0, DerivativeRootFinder type, double precision=1e-12, int max_iter=100, double h=1e-6)
 Function finds roots basing on derivative. More...
 

Detailed Description

File contains implementation of root finder algorithm using derivative.