20 typedef function<Real (Real)>
Func;
26 Bisect(
Real tol = Real_::zeroTol,
int iterMax = 30) : _tol(tol), _iterMax(iterMax) {}
51 tuple<bool, Real>
root(
const Func& func,
Real min,
Real max);
58 extern template class Bisect<Float>;
59 extern template class Bisect<Double>;
60 extern template class Bisect<Quad>;
Algebra.
Definition: Alge.h:13
Find the root of a function by the bisection method. ie. Finds where function returns 0...
Definition: Bisect.h:15
Bisect(Real tol=Real_::zeroTol, int iterMax=30)
Definition: Bisect.h:26
function< Real(Real)> Func
Definition: Bisect.h:20
float Real
Real number type. See Real_ for real number operations and constants.
Definition: Real.h:21
tuple< bool, Real > root(const Func &func, Real min, Real max)
Find the root of a function within bounds [min,max].
Definition: Bisect.cpp:35
Global Honeycomb namespace.
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...
Definition: Bisect.cpp:9