Iteration of functions: Finding zeros via iterations
Finding zeros via iteration of a function (programming assignment)
In this assignment we consider the polynomial .
This polynomial has a unique root, which is , and can be rewritten as .
The zero point of the polynomial can be approximated via iteration of a function. In this assignment we will experimentally study the convergence behaviour of several functions of which is the fixed point.
Assignment
Write a computer program for function iteration and use the following functions:
Carry out experiments for each of these functions to approximate the zero point of . Vary the tolerance and check how many iterations are needed (note: sometimes there is no convergence!).
Also experiment with a few different starting values . Along the way, write down any details you encounter (about convergence, speed of convergence, dependency on the starting value, etc.) and verify that the value of the derivative is the predominant factor in all experiments.
Unlock full access