
Complex numbers are often used in fractals, such as Mandelbrot sets and Julia sets. Complex numbers (z in this example) come in the form
a and b are real numbers. a is the real part, and bi
is the imaginary part, where i is the square root of -1, (therefore
i*i = -1) - there is no square root of -1, - this is why it is imaginary.
Complex
Algebra
Here are the various complex algebra functions.
Addition
Addition of the complexes y and z :
Subtraction
Subtraction of the complexes y and z :
Multiplicationn
Multiplication of the complexes y and z :
Norm
Norm of
the complex z :
Modulus
Modulus of the complex z (|z|) :
Arguement
Arguement of the complex z :
Conjugate
Conjugate of the complex z (z*) :
Inverse
Inverse of the complex z (
) :
Division
Division
of the complexes y and z (
)
:
Code that
lot up in a library or something.
If anyone has any questions, ideas for optimiztions, etc, don't hesitate to mail me at :
mrmeanie@easynet.co.uk