Find first root of a black box function, or any negative value of same function
问题 I have a black box function, f(x) and a range of values for x. I need to find the lowest value of x for which f(x) = 0. I know that for the start of the range of x, f(x) > 0, and if I had a value for which f(x) < 0 I could use regula falsi, or similar root finding methods, to try determine f(x)=0. I know f(x) is continuous, and should only have 0,1 or 2 roots for the range in question, but it might have a local minimum. f(x) is somewhat computationally expensive, and I'll have to find this