This is a project I completed in Numerical Methods (MATH 458) at USC. The task was, broadly speaking, to create a visual representation of the rate of convergence for Newton's Method depending on the initial value provided. Newton's Method is an iterative method for identifying a root of a given function. Starting with an initial guess, Newton's method outputs successive new values each closer than the last to a valid root of the given function. Generally speaking, we assume that the further the initial guess is from a root of the function the slower the rate of convergence (i.e. the more iterations required before a valid root is identified). This is not entirely true though, as you will see.
The following is repeated, starting with the initial guess x0, and ending when | xn - xn-1 | < M where M is some predetermined threshold indicating a sufficiently close value has been reached.
xn+1 = xn - f(xn)/f'(xn)
Further reading: https://en.wikipedia.org/wiki/Newton's_method
Start by downloading the writeup and skimming the overview of my work. Mapping the convergence rate of Newton's method on top of the location of initial guesses for the root of a function in the complex plane produce interesting fractal geometries. There are many charts in the writeup that display these fractals. The code to create the fractals is included in the .m files.
Example fractals: