public interface RootFinder
float findRoot(Function function, float startLow, float startHigh, float tolerance)
function
- Function f(x) to find root ofstartLow
- Low-valued x from which to start searchstartHigh
- High-valued x from which to start. You typically give startLow and startHigh so that
you expect the signs of the functions at these values to be different.tolerance
- Max acceptable |f(x)| for which to return x