mdbtxt1
mdbtxt2
Proceed to Safety

Continuous Dwell    

Robert P. Munafo, 2023 Mar 20.



"Continuous" dwell refers to any method of calculating dwell that gives a continuous value, i.e. a value that varies smoothly rather than jumping between integer values. This allows for more variety in coloring algorithms, and is essential for making a 3-D shape of the Mandelbrot set, or for visualisation of such things as ridgelines.

Ideally, continuous dwell would be defined in such a way that all points on any given field line (as defined by the electric field model as given in equipotentials) have the same dwell. This is not possible with ordinary iteration, for reasons related to the fact that for most iterates Zn, |Zn+1| is not equal to |Zn|2. In other words, the lemniscates obtained with an escape radius of ER≥2 do not align with those when using an escape radius of ER2.

However, with a fairly large escape radius the lemniscates are "close enough" to field lines so as to not be easily discerned at the resolution used for pixel images. Thus, one may choose a fairly large escape radius (such as 1000), then perform the ordinary iteration algorithm until it escapes. Let Zn be the value of the iterate that exceeds the escape radius. The normal dwell value would be n (as shown in the pseudo-code in the escape-iterations article). The "continuous dwell" value is given by

D = n + 1 + log2(log2(EscapeRadius)) - log2(log2(|Zn|))

Variation

The formula above will give something that is devoid of any dwell band boundaries, because the part with the two log2(log2()) expressions will be a fractional value in the range (-1..0), and each band will blend smoothly into the next. You may wish to create distinct color transitions at the integer dwell bands by multiplying the log2(log2()) section by a constant K so that it goes from 0.0 to K.

Comparison

Normal (integer) dwell bands Continuous dwell
The entire Mandelbrot set

Normal (integer) dwell bands Continuous dwell
An area in seahorse valley, -0.74546 +0.11669i @ 0.01276

Low Escape Radius

When a very low escape radius is used, the above formula for continuous dwell gives markedly different results. There are clearly discernable jump discontinuities along the lemniscates for the chosen escape radius, plus additional "edges" along portions of the lemniscates for the square of the chosen escape radius. Here is an example with dwell bands around R2F(2(3B1)B1), where pinch points are prominent:

Normal (integer) dwell bands Continuous dwell


revisions: 20221202 oldest on record; 20230320 link to 3-D and ridgelines, and Wikipedia "continuous function"; 20250310 correct sign in the log(log(...)) terms, and reference equipotentials; 20250312 add low escape radius section




From the Mandelbrot Set Glossary and Encyclopedia, by Robert Munafo, (c) 1987-2025.

Mu-ency main pageindexrecent changesDEMZ


Robert Munafo's home pages on AWS    © 1996-2025 Robert P. Munafo.    about    contact
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. Details here.

This page was written in the "embarrassingly readable" markup language RHTF, and was last updated on 2025 Mar 12. s.30