Fractals

While scouring reddit for a programming challenge I stumbled across the programming daily subreddit that provides daily challenges to readers. One looked at generating Julia fractals so sensing an opportunity for some maths and gnarly images I thought I’d have a go.

The idea behind Julia fractals is taking a complex function and a point in the complex plane and repeatedly applying the function until the value of the function exceeds some threshold. Given a pixel whose location corresponds to the point in the plane, we color it according to the number of iterations required and repeat for lots of points in the plane.

We used the function f with \omega = - (0.221 + 0.731i)

\begin{matrix} f_\omega: & \mathbb{C} & \rightarrow & \mathbb{C} \\ & z & \rightarrow & z^{2} - \omega \end{matrix}

Iterating over the intervals [-1,1] for both the real and imaginary parts in steps of 0.001, gives the following which I will definitely be using as the new header for the blog.

julia set

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s