Class root_toms748 (o2scl)

O2scl : Class List

template<class func_t = funct, class fp_t = double>
class root_toms748 : public o2scl::root_bkt<funct, funct, double>

Bracketing solver based the Boost implementation of TOMS 748.

This class currently uses o2scl::gsl_tolerance as a test, since this works even when the root is zero.

Public Functions

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

Return the type, "root_toms748".

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

Solve func using x as an initial guess, returning x.