Skip to content

Root-Finding Fractals #1839

@osveliz

Description

@osveliz

Yes, two others have already suggested Newton Fractals #1696 and #1626 while also referring to 3b1b's video on the subject https://www.3blue1brown.com/lessons/newtons-fractal, but there is a bigger picture that folks (including Grant) are missing. Newton's method $x_{n+1}=x_n\frac{f(x_n)}{f'(x_n)}$ is not the only method for finding roots nor is it the only way to make these kinds of fractals.

With one change you can go from:

https://raw.githubusercontent.com/osveliz/numerical-veliz/refs/heads/master/photos/NewtonFractal/zcube1.png

to

https://raw.githubusercontent.com/osveliz/numerical-veliz/refs/heads/master/photos/JarrattSPIFractal/z4o4-z.png

to

https://raw.githubusercontent.com/osveliz/numerical-veliz/refs/heads/master/photos/HalleyFractal/z3-1halfhalfi.png

to

https://raw.githubusercontent.com/osveliz/numerical-veliz/refs/heads/master/photos/JenkinsTraubFractal/z3-1.png

All by making minor changes to the iteration function like Halley's Method, Householder's Method, or Jenkins-Traub. These were all essentially different methods of solving $z^3-1=0$.

If you change the input function to something like $z^8-15z^4-16=0$ and include a scaling factor you get:

https://raw.githubusercontent.com/osveliz/numerical-veliz/refs/heads/master/photos/NewtonFractal/z8%2B15z4-16halfhalfi.png

I was just coloring on if it converged or not, but you can also color based on which root it finds such as:

https://raw.githubusercontent.com/osveliz/numerical-veliz/refs/heads/master/photos/NewtonFractal/z8/z8.png

The code that generated these images is available via https://github.com/osveliz/numerical-veliz shared by the author (me) and they are very small programs. I have a Numerical Analysis YouTube channel with 12k subscribers and I would appreciate a shout-out if you decide to use this. I made my original video on Newton Fractals, 3 years before 3b1b's version, but everyone watches that one now. If you would like to collaborate on something, I would be glad to work with you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions