c++ - fixed point iteration - Stack Overflow
stackoverflow.com › questions › 7685610Oct 07, 2011 · Your function doesn't have an attractive fixed point near 1.5, and the algorithm diverges. But why the numerics: Your function is f(x) = x^3 - 4x - 10, so solving f(x) = x amounts to finding the zeros of f(x) - x, and there is only one real zero near 5.35. Howevever, f'(x) at that point is very large, so even there the iterative algorithm isn't ...