Mandelbrot Set Program

    To really test the processing power of the parallel processor, I wrote a program to generate the Mandelbrot and save it as a bitmap file.  I actually wrote 2 programs, one that saves the fractal as a single file of any size.  The second saves the fractal as a series of pages, with one page being a fixed size.  The code that I have included is from the second.
    The way both of the programs work is that the master program breaks up the fractal into smaller pieces, and farm them off to a number of slave processes that compute the fractal for that piece and then send that data back.
    The files necessary for this are the following:

    To compile the program you need to compile both master.c and slave.c separately. To run it create and edit a file called fractal and add the lines To run the program type

    The largest fractal I generated was a 25 page, 5x5 image of the region (-1.004047,0.313598) - (-1.012119,0.307215) of the Mandelbrot Set.  It has a total of 18,374,200 Pixels and 13,116,078,913 float multiplication.  The total generation time was 466 seconds.  You can download the zipped fractal as a series of gifs from here:

    I also wrote a fractal generator for Window 32.  I know it runs under Win95, I don't know about WinNT.  It's not that great of a program.  It was my first attempt at writing a program for windows.  It does have the nice feature of being able to zoom with the mouse, and you can save what I call a .fcl file.  the .fcl file can be read in by the programs I wrote for the parallel processor.  Although the program says you can save the image as a BMP, you can't actually do that yet.  But it is a nice little program anyway.  It does not redraw the screen though.  You can get the program from here:     From that program and my parallel processor, I have generated a number of images that you can download.  Some, like what I call "trees" make a very nice background for your desktop.  Please feel free to view my collection.  If you would like to get all of them in one zip file there they are:

    "cone",    Download Wallpaper (bmp, Kb)
    "fire",    Download Wallpaper (bmp, 443Kb)
    "horizon",    Download Wallpaper (bmp, Kb)
    "horizon2",    Download Wallpaper (bmp, Kb)
    "spiral",    Download Wallpaper (bmp, Kb)
    "trees",    Download Wallpaper (bmp, Kb)


Written by: David Randall
randaldt@acad.etown.edu
http://www.etown.edu/~randaldt