Class root_de (o2scl)

O2scl : Class List

template<class func_t = funct, class dfunc_t = func_t, class fp_t = double>
class o2scl::root_de : public o2scl::root<funct, funct, double>

One-dimensional with solver with derivatives [abstract base].

Idea for Future:

Implement the functions solve() and solve_bkt() for derivative solvers.

Note

At the moment, the functions solve() and solve_bkt() are not implemented for derivative solvers.

Public Functions

root_de()
~root_de()
const char *type()

Return the type, "root_de".

int solve_bkt(fp_t &x1, fp_t x2, func_t &func)

Solve func in region \( x_1<x<x_2 \)

returning

\( x_1 \) .

int solve(fp_t &x, func_t &func)

Solve func using x as an initial guess.

int solve_de(fp_t &x, func_t &func, dfunc_t &df) = 0

Solve func using x as an initial guess using derivatives df.