Tag Archives: complex

Refine the complex number class in C#

This example shows how to refine the complex number class defined by the example Make a complex number class that works with real numbers in C#. That example explains how to build a Complex class that represents complex numbers. It … Continue reading

Posted in classes, mathematics, OOP, operators | Tagged , , , , , , , , , , , , , , , | 1 Comment

Make a complex number class that works with real numbers in C#

The example Make a complex number class with overloaded operators in C# builds a simple Complex class that includes overloaded +, -, *, and / operators that let you combine Complex objects. For example, a program can execute the following … Continue reading

Posted in classes, mathematics, OOP, operators | Tagged , , , , , , , , , , , , , , , | 1 Comment

Make a complex number class with equality in C#

The example Make a complex number class with overloaded operators in C# builds a simple Complex class that includes overloaded +, -, *, and / operators that let you combine Complex objects. For example, a program can execute the following … Continue reading

Posted in classes, mathematics, OOP, operators | Tagged , , , , , , , , , , , , , , , | 3 Comments

Make a complex number class with overloaded operators in C#

This example uses a complex number class to demonstrate operator overloading, a technique that allows you to define operators such as + and * for objects. Many people use a complex number class as an example because the operators are … Continue reading

Posted in classes, mathematics, OOP, operators | Tagged , , , , , , , , , , , | 5 Comments

Draw a Phoenix set fractal in C#

This example shows how to draw a Phoenix set fractal, a shape that was discovered by Shigehiro Ushiki in 1988. The fractal is generated by iterating the equation: Zn+1 = Zn2 + Re(C) + Im(C) * Zn-1 Where the Zs … Continue reading

Posted in algorithms, drawing, fractals, graphics | Tagged , , , , , , , , , , , , , , , | Leave a comment

Use a Complex number class to draw a Mandelbrot set fractal easily in C#

The example Draw a Mandelbrot set fractal in C# explains how to draw a Mandelbrot set by iterating the equation: Z(n) = Z(n-1)2 + C Where Z(n) and C are complex numbers. The program iterates this equation until the magnitude … Continue reading

Posted in algorithms, fractals, graphics, mathematics | Tagged , , , , , , , , , , , , , , | 1 Comment