From 2a174cf7a918637af3f84bf47b2f720dcbc742fe Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 26 Oct 2014 00:20:22 -0400 Subject: refactor this should be able to support both mandelbrot and julia sets --- src/mandelbrot.jl | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/mandelbrot.jl (limited to 'src/mandelbrot.jl') diff --git a/src/mandelbrot.jl b/src/mandelbrot.jl deleted file mode 100644 index 9cddee7..0000000 --- a/src/mandelbrot.jl +++ /dev/null @@ -1,14 +0,0 @@ -type Mandelbrot{T <: FloatingPoint} - c::Array{Complex{T}, 2} - z::Array{Complex{T}, 2} - - Mandelbrot(imgsize) = ( - line = linspace(-2.0, 2.0, imgsize); - plane = [ x + y*im for x=line, y=line ]; - new(plane, plane) - ) -end - -function step{T <: FloatingPoint}(m::Mandelbrot{T}) - m.z = m.z.^2 + m.c -end -- cgit v1.2.3-54-g00ecf