Functions
NewtonRaphson.hpp File Reference

Declares function RootFinder::newton_raphson. More...

#include <boost/math/tools/roots.hpp>
#include <functional>
#include <limits>
#include "DataStructures/DataVector.hpp"
#include "ErrorHandling/Exceptions.hpp"

Go to the source code of this file.

Functions

template<typename Function >
double RootFinder::newton_raphson (const Function &f, const double initial_guess, const double lower_bound, const double upper_bound, const size_t digits, const size_t max_iterations=50)
 Finds the root of the function f with the Newton-Raphson method. More...
 
template<typename Function >
DataVector RootFinder::newton_raphson (const Function &f, const DataVector &initial_guess, const DataVector &lower_bound, const DataVector &upper_bound, const size_t digits, const size_t max_iterations=50)
 Finds the root of the function f with the Newton-Raphson method on each element in a DataVector. More...
 

Detailed Description

Declares function RootFinder::newton_raphson.