Mandelbrot set: Difference between revisions

Content added Content deleted
(→‎Normalized Iteration Count, Distance Estimation and Mercator Maps: Restored the link to Syntopia and used num as a keyword argument.)
(→‎Mandelbrot Set with Julia Animation: Changed to Julia's broadcast functionality to shorten the code.)
Line 5,259: Line 5,259:
h = 600 # image height
h = 600 # image height


A = range(-1, 1, length=d+1)' .* ones(h + 1)
x = range(-1, 1, length=d+1)
B = ones(d + 1)' .* range(-h/d, h/d, length=h+1)
y = range(-h/d, h/d, length=h+1)


C = 2.0 * (A + B * im) .- 0.5
C = 2.0 * (x' .+ y * im) .- 0.5
Z = zero(C)
Z = zero(C)