The documentation for the brent_find_minima
function is at https://www.boost.org/doc/libs/1_76_0/libs/math/doc/html/math_toolkit/brent_minima.html
template <class F, class T>
std::pair<T, T> brent_find_minima(F f, T min, T max, int bits);
template <class F, class T>
std::pair<T, T> brent_find_minima(F f, T min, T max, int bits, boost::uintmax_t& max_iter);
However I'm a bit confused on how to convert bits to a tolerance. For example I have some objective function that measures distance
double distance(double x);
which measures some value distance as paramaterized by x. I would like to be able to say that I want the solver to return me the minimum of this function to an accuracy of 0.1 which represents the accuracy I care about.
How do I convert 0.1 to bits?