Fractals!
From Huben's Wiki
(Created page with "Image:Mandelbrot.tiff Many sorts of fractals require complex numbers to calculate. The above Mandelbrot function, for example. Today's exercise is to build enough of a com...") |
|||
Line 1: | Line 1: | ||
− | [[Image:Mandelbrot. | + | [[Image:Mandelbrot.jpg]] |
Many sorts of fractals require complex numbers to calculate. The above Mandelbrot function, for example. Today's exercise is to build enough of a complex class to run a fractal browser. You will only need to write about 7 methods. | Many sorts of fractals require complex numbers to calculate. The above Mandelbrot function, for example. Today's exercise is to build enough of a complex class to run a fractal browser. You will only need to write about 7 methods. | ||
Line 21: | Line 21: | ||
} | } | ||
</pre> | </pre> | ||
− | * Look at the error messages as you try to compile | + | * DO NOT CHANGE ANY OF THE DOWNLOADED CODE! It is correct. |
+ | * Look at the error messages as you try to compile: they tell you which methods are missing from your Complex class. | ||
+ | * Add the needed methods. | ||
* When it works, you should be able to plot beautiful fractals. | * When it works, you should be able to plot beautiful fractals. |