| Honeycomb
    0.1
    Component-Model Framework | 
Find the root of a function by the bisection method. ie. Finds where function returns 0. More...
#include <Bisect.h>
| Public Types | |
| typedef function< Real(Real)> | Func | 
| Public Member Functions | |
| Bisect (Real tol=Real_::zeroTol, int iterMax=30) | |
| tuple< bool, Real, Real > | bracket (const Func &func, Real min, Real max) | 
| Find the lower and upper bounds of the root of a function. ie. Estimate bounds where somewhere within the function returns 0.  More... | |
| tuple< bool, Real > | root (const Func &func, Real min, Real max) | 
| Find the root of a function within bounds [min,max].  More... | |
Find the root of a function by the bisection method. ie. Finds where function returns 0.
Bisection should only be used if the function to be evaluated is monotonic over the range [min,max], ie. the function is either increasing or decreasing over the range.
| typedef function<Real (Real)> honey::Bisect< Real >::Func | 
| 
 | inline | 
| tol | find root to within tolerance of zero | 
| iterMax | max bisections | 
| tuple< bool, Real, Real > honey::Bisect< Real >::bracket | ( | const Func & | func, | 
| Real | min, | ||
| Real | max | ||
| ) | 
Find the lower and upper bounds of the root of a function. ie. Estimate bounds where somewhere within the function returns 0.
This method finds the bounds by expanding min/max each step
| func | |
| min | root lower bound estimate | 
| max | root upper bound estimate | 
| found | if not found a best guess is returned | 
| min | |
| max | 
| tuple< bool, Real > honey::Bisect< Real >::root | ( | const Func & | func, | 
| Real | min, | ||
| Real | max | ||
| ) | 
Find the root of a function within bounds [min,max].
If the bounds are unknown call Bracket to estimate the bounds
| func | |
| min | root lower bound | 
| max | root upper bound | 
| found | if not found a best guess is returned | 
| root | 
 1.8.10
 1.8.10