Class root_de (o2scl)

O2scl : Class List

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

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

Todo

class root

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.

Subclassed by o2scl::root_stef< func_t, dfunc_t >

Public Functions

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

Return the type, "root_de".

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

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

inline virtual int solve(fp_t &x, func_t &func)

Solve func using x as an initial guess.

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

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