Mandelbrot set: Difference between revisions
m
→Normal Map Effect, Mercator Projection and Deep Zoom Images: The conversion to float is specified on float64 (so that it can also be converted to other data types such as float32 or float128)
m (→Normal Map Effect, Mercator Projection and Deep Zoom Images: Data type made explicit (so it can be easily replaced with float32 or float128)) |
m (→Normal Map Effect, Mercator Projection and Deep Zoom Images: The conversion to float is specified on float64 (so that it can also be converted to other data types such as float32 or float128)) |
||
Line 11,308:
for k in range(n+1):
S[k] =
if u ** 2 + v ** 2 < r ** 2:
u, v = u ** 2 - v ** 2 + a, 2 * u * v + b
|