mandelbrot

Smooth spectrum for Mandelbrot Set rendering

I'm currently writing a program to generate really enormous (65536x65536 pixels and above) Mandelbrot images, and I'd like to devise a spectrum and coloring scheme that does them justice. The wikipedia featured mandelbrot image seems like an excellent example, especially how the palette remains varied at all zoom levels of the sequence. ...

How to 'zoom' in on a section of the Mandelbrot set?

I have created a Python file to generate a Mandelbrot set image. The original maths code was not mine, so I do not understand it - I only heavily modified it to make it about 250x faster (Threads rule!). Anyway, I was wondering how I could modify the maths part of the code to make it render one specific bit. Here is the maths part: for...

Lua Challenge: Can you improve the mandelbrot implementation’s performance?

Status: So far the best answer's program executes in 33% of the time of the original program! But there is probably still other ways to optimize it. Lua is currently the fastest scripting language out there, however Lua scores really bad in a few benchmarks against C/C++. One of those is the mandelbrot test (Generate Mandelbrot set p...

Clojure/Java Mandelbrot Fractal drawing

I am trying to port this algorithm to clojure. My code is (defn calc-iterations [x y] (let [c (struct complex x y)] (loop [z (struct complex 0 0) iterations 0] (if (and (< 2.0 (abs z)) (> max-iterations iterations)) iterations (recur (add c (multiply z z)) (inc iterations)))))) ...

Best Language for a Mandelbrot Zoom?

Hi, I've been pretty interested in coding a Mandelbrot Set zoom and have already done it twice. However there were problems with each one. The first time I thought it'd be cool to do it in javascript... but that was so damn slow. Then I did it in C++, which worked great until you zoomed so far that the units on the graph got to the sma...

quick/fast integer multiplication in ruby?

Hi there, I am trying to make a quick/efficient Mandelbrot implementation in Ruby. A long long time ago, one way to speed it up was using fixed point integers instead of floats. So i made the following benchmark, comparing float and integer raising to a square, using multiplication or square ** operand. require 'benchmark' Benchmark....

Mandelbrot Set implementation in Common Lisp.

I've been working on an implementation of the Mandelbrot Set in several different languages. I have a working implementation in C++, C#, Java, and Python, but the Common Lisp implementation has some bugs that I just can't figure out. It generates the set but somewhere in the pipeline the set gets distorted. I've tested and know with n...

Big float for shader-based mandelbrot explorer

Hi All, I've managed to create a simple mandelbrot explorer using Open Gl, and the CGFX SDK provided by NVidia. It works well, but is currently float based, and therefore doesn't have much "depth" -- As the distance from the lowest complex number to the largest becomes smaller, the precision is lost, and the resultant image is "pixelate...

Code golf: the Mandelbrot set

Usual rules for the code golf. Here is an implementation in python as an example from PIL import Image im = Image.new("RGB", (300,300)) for i in xrange(300): print "i = ",i for j in xrange(300): x0 = float( 4.0*float(i-150)/300.0 -1.0) y0 = float( 4.0*float(j-150)/300.0 +0.0) x=0.0 y=0.0 ...

Help with rendering the Mandelbrot set in Java

I wrote an implementation of the Mandelbrot set in Java using a JComponent but I'm getting strange results when I render it. Besides that everything compiles right. I'm just not for sure what I'm doing wrong with it. Any code review also would be appreciated. My source is posted on pastebin since it would take up too much room here: JM...

Why would an image (the Mandelbrot) be skewed and wrap around?

So I just wrote a little snippet to generate the Mandelbrot fractal and imagine my surprise when it came out all ugly and skewed (as you can see at the bottom). I'd appreciate a point in the direction of why this would even happen. It's a learning experience and I'm not looking for anyone to do it for me, but I'm kinda at a dead end debu...

Genetic Programming with the Mandelbrot Set

I'm reading a chapter in this fascinating book about using genetic programming to interactively evolve images. Most of the function set is comprised of simple arithmetic and trig functions (which really operation on and return images). These functions make up the internal nodes of the parse trees that encode our images. The leaves of the...

Fractals explained

For a while now I've been interested in fractals, the math behind them and the visuals they can produce. I just can't really figure out how to map the mathematical formula to a piece of code that draws the picture. Given this formula for the mandelbrot set: Pc(z) = z * z + c How does that compare to the following code: $outer_adder = (...