This assignment was the investigation of the iteration of complex numbers, through the generation of mandelbrot and julia sets.
Complex iteration is the process of squaring a complex number and adding a constant.
For a mandelbrot set, C is equal to the point the iterations are being taken on, and for a julia set, C is a constant. My final code is here , incorporating the ability to draw a mandelbrot or julia set, at any number of iterations, output to a targa file, and zoom using the mouse. The number of iterations defaults to 100, and if no initial values are given it draws a mandelbrot set. I converted the targa output to jpeg using xv. Click on an image to see more about that set.