Mandelbrot set: Difference between revisions
m
→Normalized Counting, Distance Estimation, Mercator Maps and Deep Zoom: Replaced slow abs function with faster abs2 calculation
m (→Normalized Counting, Distance Estimation, Mercator Maps and Deep Zoom: Order reversed (consistency with above versions)) |
m (→Normalized Counting, Distance Estimation, Mercator Maps and Deep Zoom: Replaced slow abs function with faster abs2 calculation) |
||
Line 8,885:
for k in range(n):
M =
Z[M], dZ[M] = Z[M] ** 2 + C[M], 2 * Z[M] * dZ[M] + 1
Line 8,936:
D = np.zeros(C.shape)
for k in range(n):
E[M] = (2 * S[k] + E[M]) * E[M] + C[M]
Z[M], dZ[M] = S[k+1] + E[M], 2 * Z[M] * dZ[M] + 1
|