Example 2.2.1 Cosine iteration
Suppose we'd like to experiment with the iteration of the cosine function. We can simply do the following:
Note that the output appears to be converging to some fixed point, though much more slowly than we saw in the Newton's method computation.