Mandelbrot set: Difference between revisions

m
→‎Mercator zooms of the Mandelbrot set using NumPy: The two inner logarithms have been changed to the base e (as stated in the source)
(→‎Mercator zooms of the Mandelbrot set using NumPy: Shifting escape times towards zero before compression)
m (→‎Mercator zooms of the Mandelbrot set using NumPy: The two inner logarithms have been changed to the base e (as stated in the source))
Line 7,172:
 
N = abs(Z) >= r # normalized iteration count for smooth coloring
T[N] = T[N] - np.log2(np.log2log(abs(Z[N])) / np.log2log(r))
 
T = T - T.min() # shifting escape times towards zero before compression
Line 7,192:
 
d, h = 400, 1200 # pixel density and zoom depth
n, r = 200250, 1000 # number of iterations and escape radius (r > 2)
 
x = np.linspace(0, 2 * np.pi, d, endpoint=False)
Line 7,212:
 
N = abs(Z) >= r # normalized iteration count for smooth coloring
T[N] = T[N] - np.log2(np.log2log(abs(Z[N])) / np.log2log(r))
 
T = T - T.min() # shifting escape times towards zero before compression
305

edits