This can be avoided by interpolating the inverse of f, resulting in the inverse quadratic interpolation method.