I’ve written a simple mandelbrot fractal generator (pretty pics available upon request 🙂
The problem I’m running into is that when I “zoom in” far enough, the image starts to pixelate. After a bit of investigation, this seems to be caused by hitting the precision limit of the double type used by System.Numerics.Complex to store the real and imaginary values used in my calculations.
Is there any other type I can use or another way to gain greater precision (presumably at the expense of more memory)
Failing that, is there an easy way I can determine the maximum precision of a double and disable zoom functionality if the zoom would result in pixelation?
Thanks in advance for any help you can provide
You can try using the BigNum library for C#, or any other Arbitrary-precision arithmetic library.