by frankreyes · 3y ago · 0 comments
Because that's just an iterative/recursive version of binary/ternary search.
A modified binary search called ternary search is well known used to find when derivative = 0, numerically.
More generally, for binary search to find a value x such that f(x)=0, we need to have f(any value less than x)<0 and f(any value greater than x)>0. We can't guarantee these properties for general derivatives.
I imagine you could search until the incremental change between your current and last result is below some threshold epsilon, as a kind of stopping criterion.