What are complex numbers?
The Mandelbrot set is the domain of convergence of the series built up by the complex sequence defined by the recursion law: Zn+1 = Z2n + C, therefore understanding complex numbers is important to understand what the Mandelbrot set represents.

If you are familiar with complex numbers, you can skip this section. If you haven't encountered complex numbers during your studies, don't worry! In order to learn what they are and how to use them to build fractals you only need some simple concepts.
A complex number is made by two parts: the real part and the imaginary part. The real part is a real number (i.e. an ordinary number), the imaginary part is another real number multiplied by i, which is called the imaginary unit and is defined as the square root of -1, so that i2 = -1.

Example: -6 + 9i is a complex number.

Now imagine a plane with two coordinate axes on it. We can associate each point of the plane with a complex number of the form: x_coordinate + i*y_coordinate. The picture below shows the correspondence between the coordinates of a point and the complex number that can be associated with it.

Corrispondance between complex numbers and points on the plane

We need to define some operations to deal with complex numbers:

Adding two complex numbers is very simple. Let's take two complex numbers: Z1=a1+ib1 and Z2=a2+ib2. The complex number resulting from Z1+Z2 is defined as: a1+a2+i*(b1+b2). The real part of the result is the sum of the real parts of Z1 and Z2; the imaginary part of the result is the sum of the imaginary parts of Z1 and Z2.

Example: Z1 = 2 + i , Z2 = 3 - 6i , Z1+Z2 = 5 - 5i

In order to multiply Z1 by Z2 we only need to remember the distributive law and the equation i2 = -1. Therefore, the multiplication is defined as follows: Z1*Z2 = a1*a2 - b1*b2 +i*(a1*b2 + a2*b1).

Example (with the values above): Z1*Z2 = 6 - (-6) + i*(-12 + 3) = 12 - 9i

In particular, the square of a complex number (i.e. the complex number multiplied by itself) is: Z2 = a2 - b2 + 2*i*a*b
Don't forget this formula, because we'll use it to build Mandelbrot and Julia sets.


You can give me feedback about this page by filling out the feedback form.

© 1996-2000 fabioc @ yahoo.com


This page hosted by Get your own Free Home Page