Nov. 13th, 2010

ewx: (geek)

I’ve continued hacking on my Mandelbrot set program.

Firstly, it’s gained the ability to draw Julia sets (which are associated with the Mandelbrot set).

Wide image )

Secondly, the use of double limits you to around 50 binary digits after the point (all the interesting stuff has a magnitude of at least 0.25 or so, so the “floating” nature of floating point doesn’t really do you much good). Given how fast it is, it doesn’t take much frantic zooming before things start to go blocky:

So I’ve been working away on using fixed point arithmetic to achieve the same goal. To do this at any reasonable speed required assembly language, and now it’s working. It’s somewhat slower than the floating point version, but gives 96 bits after the point, i.e. it allows you to zoom in almost twice as far.

You can browser the source, or git clone it, via gitweb.

January 2026

S M T W T F S
    123
45678910
111213141516 17
18192021222324
25262728293031

Most Popular Tags

Expand Cut Tags

No cut tags