Mandelbrot set: Difference between revisions
m
→Normalized Counting, Distance Estimation, Mercator Maps and Deep Zoom: The array J is redundant in Python.
m (→Normalized Counting, Distance Estimation, Mercator Maps and Deep Zoom: Split the overly long line.) |
m (→Normalized Counting, Distance Estimation, Mercator Maps and Deep Zoom: The array J is redundant in Python.) |
||
Line 8,977:
E, Z, dZ = np.zeros_like(C), np.zeros_like(C), np.zeros_like(C)
D, I
for k in range(n): # you can also try range(2*n) due to rebasing
R = Z.real ** 2 + Z.imag ** 2 < E.real ** 2 + E.imag ** 2
E[R], I[R] = Z[R],
M = Z.real ** 2 + Z.imag ** 2 < r ** 2
E[M], I[M] = (2 * S[I[M]] + E[M]) * E[M] + C[M], I[M] + 1
|