Mandelbrot set: Difference between revisions

m
m (→‎Normal Map Effect, Mercator Projection and Deep Zoom Images: Used math tags and shortened explanation for rebasing.)
Line 7,958:
 
===Normal Map Effect, Mercator Projection and Perturbation Theory===
This is a translation of the corresponding Python section: see there for more explanations. The Mandelbrot set is represented by distance estimation and normal maps using complex matrices (cf. Arnaud Chéritat: [https://www.math.univ-toulouse.fr/~cheritat/wiki-draw/index.php/Mandelbrot_set#Normal_map_effect ''Normal map effect'']). Note that the second derivative (ddZ) grows very fast, so the second method can only be used for small iteration numbers (n <= 400).
<syntaxhighlight lang="julia">using Plots
gr(aspect_ratio=:equal, axis=true, ticks=true, legend=false, dpi=200)
Line 8,045:
savefig("Mercator_Mandelbrot_zoom.png")</syntaxhighlight>
 
For deep zoom images it is sufficient to calculate a single point with high accuracy. A good approximation can then be found for all other points by means of a perturbation calculation with standard accuracy. Rebasing is used to reduce glitches. See [https://en.wikipediafractalforums.org/wiki/Plotting_algorithms_for_the_Mandelbrot_set#Perturbation_theory_and_series_approximation Perturbation theory] (Wikipedia) fractal-mathematics-and [https:-new-theories/28/gbillotey.github.io/Fractalshadesanother-doc/math.html#avoidingsolution-lossto-ofperturbation-precisionglitches/4360 Another Avoidingsolution lossto ofperturbation precisionglitches] (FractalshadesFractalforums) for details. See also the image [https://www.flickr.com/photos/arenamontanus/3430921497/in/album-72157615740829949/ Deeper Mercator Mandelbrot] by Anders Sandberg.
<syntaxhighlight lang="julia">using Plots
gr(aspect_ratio=:equal, axis=true, ticks=true, legend=false, dpi=200)
305

edits