MRaster examples 21.0.0.0
Image Processing Library
Loading...
Searching...
No Matches
newton_min_angle_starfish.cpp File Reference

Draw a Newton Fractical. More...

Go to the source code of this file.

Detailed Description

Draw a Newton Fractical.

Author
Mitch Richling https://www.mitchr.me
Standards
C++20
Details


We do the standard Newton iterations, but we keep track of the minimum phase angle difference between the three bisectors between the roots. The distances are used to set the r, g, b channels (i.e. distance to root 1/2 bisector is r, root 1/3 bisector is g, and root 2/3 bisector is b).

The standard Newton fractal is generated from \( f=z^2-1 \). This function is continuous on the entire complex plain. What do we get if we add poles in imaginary axis mirror locations of the roots? i.e. for each root \( x+iy \) of \( f \), we add a pole at \( -x+iy \)? The corresponding function is:

\[ f=\frac{z^3-1}{z^3+1} \]

Definition in file newton_min_angle_starfish.cpp.