# Shape Estimate
V. Dolotin and A. Morozov “On the shapes of elementary domains or why Mandelbrot Set is made from almost ideal circles?” (2008) [eq. 5.8] derive a shape estimate , with derivatives evaluated at where is a nucleus of period :
corresponds to cardioid-like shapes. corresponds to circle-like shapes.
# 1 C99 Code
#include <complex.h>
#include <stdbool.h>
double _Complex m_shape_estimate
(double _Complex c, int p)
{
double _Complex z = c;
double _Complex dc = 1;
double _Complex dz = 1;
double _Complex dcdc = 0;
double _Complex dcdz = 0;
for (int i = 1; i < p; ++i)
{
dcdc = 2 * (z * dcdc + dc * dc);
dcdz = 2 * (z * dcdz + dc * dz);
dc = 2 * z * dc + 1;
dz = 2 * z * dz;
z = z * z + c;
}
return -(dcdc / (2 * dc) + dcdz / dz) / (dc * dz);
}
bool m_shape_is_cardioid(double _Complex s)
{
bool d = cabs(s) < cabs(s - 1);
return d;
}# 2 Examples
, :
, :