Skip to content

Jusmanov/mandelbrot-set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mandelbrot-set

Implemented the Mandelbrot Set on a blank website. The Mandelbrot Set is a fascinating mathematical model that uses the Mandelbrot algorithm to create a beautiful fractal effect. Made with HTML and JS.

Objective:

My goal with this project was to create a beautiful mathematical pattern on a simple website. This pattern is, as mentioned already, called the Mandelbrot Set.

image

image

image

How to Run:

Obviously, there are no dependencies when it comes to client-sided websites like these, where they're typically only made with HTML, CSS, and JS. Since this project was made only with HTML and JS, it is convenient to run this through a web browser, specifically through the link below. On this site I've made, the Mandelbrot Set is automatically created when a user loads into the page.

https://mandelbrot.jusmanov.repl.co/

Mandelbrot Set as shown from the site:

image

The Mandelbrot Set further explained:

The algorithm to generate the Mandelbrot Set can be summarized as follows:

  1. Define a complex number c for each point in the complex plane. The real part of c represents the x-coordinate, and the imaginary part represents the y-coordinate of the point.

  2. Initialize z as 0, representing the iterative sequence.

  3. For each point c, perform a fixed number of iterations (MAX_ITERATIONS) or until the magnitude of z exceeds a predetermined threshold (e.g., 2). In each iteration:

a. Square z (i.e., z = z^2).

b. Add c to z (i.e., z = z + c).

  1. After the iterations, if the magnitude of z exceeds the threshold, the point is considered to be outside the Mandelbrot Set. Otherwise, it is considered to be inside the set.

  2. Repeat this process for each point in the complex plane to generate the complete Mandelbrot Set.

Visualization

The generated Mandelbrot Set is typically visualized using color mapping. Each point is assigned a color based on the number of iterations it took to determine whether it belongs to the set or not. This coloring technique allows for the creation of captivating and visually stunning images.

The Mandelbrot Set exhibits self-similarity, meaning that as you zoom in on any part of the set, you encounter infinitely intricate patterns that resemble the overall shape of the set. It showcases intricate spirals, filaments, and other fascinating structures.

Applications

The Mandelbrot Set has found applications in various fields, including mathematics, physics, computer graphics, and even art. It serves as a rich source of exploration and inspiration for mathematicians, as well as a foundation for studying complex dynamics and fractal geometry.

In computer graphics and visualization, the Mandelbrot Set is a popular subject for generating visually appealing images and animations. Its complex and mesmerizing patterns have captivated artists, mathematicians, and enthusiasts alike, and it continues to be a source of creative inspiration.

explanation generated by OpenAI's ChatGPT

Releases

No releases published

Packages

No packages published