Exercise: Iterative convergence
Consider the equation x = sin (x + c) where c is a constant provided and x is a variable to be found.
Write a function to perform the computation and then construct a program which numerically solves this equation by feeding the result of the function back into it as the next argument.
- Will it always converge?
- How can you tell when it has converged?