www.
linuxforu.
com | LINUX FOR YOU | AUGUST 2007
C M Y K
91
TTTTT
he term ‘fractal’ was coined in 1975 by a
mathematician named Mandelbrot.
Fractals are
created based on some simple patterns and simple
rules.
An important characteristic of fractals is...
More
www.
linuxforu.
com | LINUX FOR YOU | AUGUST 2007
C M Y K
91
TTTTT
he term ‘fractal’ was coined in 1975 by a
mathematician named Mandelbrot.
Fractals are
created based on some simple patterns and simple
rules.
An important characteristic of fractals is that they are
‘self-similar’—a small portion of a fractal, when magnified, can
reproduce a larger portion of the fractal!
It is easy to write computer programs to create fractals,
since fractals are produced with simple mathematical rules and
are based on recursion.
In this column, we’ll create a variation of a simple, wellknown fractal called the ‘Sierpinski triangle fractal’.
Writing portable C programs to create graphical
representation of fractals is not possible because the standard
C language does not define any functions for graphics
programming.
It is possible to write graphics programs that use
the facilities provided by the underlying operating system;
however, for now, we’ll limit ourselves to creating fractals with
ASCII
Less