Class root (o2scl)¶
-
template<class func_t = funct, class dfunc_t = func_t, class fp_t = double>
class o2scl::root¶ One-dimensional solver [abstract base].
See the One-dimensional solvers section of the User’s guide for general information about O2scl solvers.
Todo
class root
Future:
Maybe consider allowing the user to specify the stream to which ‘verbose’ information is sent.
Public Functions
-
inline root()¶
-
inline virtual ~root()¶
-
inline virtual const char *type()¶
Return the type,
"root"
.
-
inline virtual int print_iter(fp_t x, fp_t y, int iter, fp_t value = 0.0, fp_t limit = 0.0, std::string comment =
"")¶ Print out iteration information.
Depending on the value of the variable verbose, this prints out the iteration information. If verbose=0, then no information is printed, while if verbose>1, then after each iteration, the present values of
x
andy
are output to std::cout along with the iteration number. If verbose>=2 then each iteration waits for a character before continuing.