If you like pretty pictures, and I know you do, below is a plot of Sierpinski’s Triangle which you can generate with the short C++ program I wrote. This is an example of a fractal–an object that is self similar at all levels of magnification.
On a Linux/UNIX system, to compile and run the code type:
$ g++ sierpinski.cc -o sierpinski $ ./sierpinski >out Enter depth (integer > 0, usually 10 is good): 10 Enter contraction mapping constant (for example 0.5): 0.5 $
Now the points are stored in a file called ‘out’. To plot them you can use gnuplot like so:
$ gnuplot gnuplot> plot 'out' with points pointtype 0