Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Data Fields
root_bkt< func_t, dfunc_t > Class Template Reference

One-dimensional bracketing solver [abstract base]. More...

#include <root.h>

Inheritance diagram for root_bkt< func_t, dfunc_t >:
root< func_t, dfunc_t >

Detailed Description

template<class func_t = funct, class dfunc_t = func_t>
class root_bkt< func_t, dfunc_t >

Definition at line 147 of file root.h.

Public Member Functions

virtual const char * type ()
 Return the type, "root_bkt".
virtual int solve_bkt (double &x1, double x2, func_t &func)=0
 Solve func in region $ x_1<x<x_2 $ returning $ x_1 $ .
virtual int solve (double &x, func_t &func)
 Solve func using x as an initial guess.
virtual int solve_de (double &x, func_t &func, dfunc_t &df)
 Solve func using x as an initial guess using derivatives df.

Data Fields

double bracket_step
 The stepsize for automatic bracketing (default $ 10^{-4} $)
size_t bracket_iters
 The number of iterations in attempt to bracket root (default 10)

Field Documentation

template<class func_t = funct, class dfunc_t = func_t>
double root_bkt< func_t, dfunc_t >::bracket_step

If this is exactly zero, it will be reset to $ 10^{-4} $ by solve().

Definition at line 165 of file root.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.