20 using func_t = std::function<double(
double)>;
21 using tuple4_t = std::tuple<double, double, bool, int>;
25 using detail::RootFind1dBase::RootFind1dBase;
38 std::tuple<double, double, bool, int>
root(
39 const std::function<
double(
double)>& f,
double x0,
double x1)
const;
55 tuple4_t _secant(
const func_t& f,
double x0,
double x1)
const;
71 tuple4_t _secant_strict(
const func_t& f,
double x0,
double x1)
const;
std::tuple< double, double, bool, int > root(const std::function< double(double)> &f, double x0, double x1) const
Find a root of the function "f(x)" closest to its initial values via Secant approach.
Definition RootFind1dSecant.cpp:8