Julia set: Difference between revisions

Content deleted Content added
Georgy (talk | contribs)
m →‎Vectorized: added missing </lang>
Georgy (talk | contribs)
Line 1,456:
Creating Fractal Images. researchgate. net, Feb. 2015.'
"""
import itertools
from functools import partial
from numbers import Complex
Line 1,466 ⟶ 1,465:
 
def douady_hubbard_polynomial(z: Complex,
*,c: Complex) -> Complex:
c: Complex):
"""
Monic and centered quadratic complex polynomial
Line 1,475 ⟶ 1,473:
 
 
def julia_set(*mapping: Callable[[Complex], Complex],
mapping: Callable[[Complex], Complex]*,
min_coordinate: Complex,
max_coordinate: Complex,
Line 1,502 ⟶ 1,500:
result = np.ones(complex_plane.shape)
 
for _ in itertools.repeatrange(None, iterations_count):
mask = np.abs(complex_plane) <= threshold
if not mask.any():
Line 1,516 ⟶ 1,514:
c=-0.7 + 0.27015j) # type: Callable[[Complex], Complex]
 
image = julia_set(mapping=mapping,
min_coordinate=-1.5 - 1j,
max_coordinate=1.5 + 1j,