# Russell's Blog

## PDQ Julia Set

Posted by Russell on March 29, 2007 at 9:01 p.m.
I was up late last night while waiting for the laundry to finish drying, and was annoyed at myself for wasting time fooling around on the internet. So, I decided to try to remember how to plot the Julia set. I vaguely remember doing this in high school, so I turned off my wireless card (so I couldn't cheat) and timed myself to see how long it would take me to figure it out.

After 11 minutes I got this. Not bad. It's not the most efficient way of plotting it, and I didn't bother to use modular arithmetic to handle big numbers (that's why I only go to six iterations). Here is my (very stupid) Julia set calculator.

```#!/usr/bin/env python
# vim: set ts=4 sw=4 et:
from numpy import *
from scipy import *
from pylab import *

def julia( l, I, M ) :
a = zeros( (I,I), Float64 )
for i in range(I) :
for j in range(I) :
N = complex(-2.0+i/(0.25*I),-2.0+j/(0.25*I))
for m in range(M) :
try :
N = (N)**2+l
except OverflowError :
N = 10000000000.0
break
a[i,j] = abs(N)
return a

l = complex( 0.4, 0.3 )
a = julia( l, 200, 6)
contourf( log(a), 32 )
colorbar()
#contour( a, [1], colors='black' )
show()
```
janey on July 07, 2013 at 11:01 p.m.

All for ourselves should be given enough reasons to tell how much would it be. - Casa Sandoval

ascascasc on December 06, 2013 at 11:14 a.m.

Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites.

may tap co bung ab rocket twister
may tap co bung black power
may tap co bung ad rocket
may tap bung fitness
may tap co bung six pack care
may tap co bung
may tap co bung
may tap co bung
may tap co bung
may tap co bung
may tap co bung
may tap co bung

rivertrees residences on February 01, 2014 at 6:32 a.m.

this is one of the best articles on this website. definitely excellent information and hope to read more. awesome. this is the information i have been searching. Ecopolitan Ecopolitan Executive Condominium Tembusu Tembusu Condo Tembusu Kovan Vue 8 Sea Horizon Sea Horizon Executive Condominium Rivertrees Rivertrees Residences Rivertrees Condo Rivertrees Condominium Rivertrees Residences Fernvale Rivertrees Fernvale Ladies Bags Ladies Bag Ladies Handbags Designer Bags Handbags Shoulder Bag Designer Handbags Thanks for sharing information that is actually helpful

 Name: Email: optional; will not be displayed URL: optional Comment: URLs auto-link and some tags are allowed:

.