How all23tor/makenewtonfractals works
Main Components
• User Input Interface:
• Polynomial Module:
• Represented via Polynomial.hpp/cpp; it handles polynomial evaluation (using Horner’s method), differentiation, and root-finding using the Durand-Kerner algorithm.
• Newton Fractal Module:
• Defined in NewtonFractal.hpp/cpp; it applies Newton’s Method for each pixel, determines the corresponding root (by distance criteria) and manages coloring rules (including eccentricity and iteration count).
• BMP Output Module:
• Responsible for generating the .bmp file using a BITMAPINFOHEADER DIB header format and writing the image to disk (in the BMPs folder).
Interactions Between Components
• The Polynomial module computes the roots and provides the information to the Newton Fractal module.
• The output from the fractal generation process is then passed to the BMP Output module which renders the final image file.
Technologies and Relevant Details
• Programming Language: C++ (with CMake as the build system, as seen by CMakeLists.txt)
• Algorithms: Horner’s method for evaluation and Durand-Kerner for root finding; Newton’s method to compute fractals.
• File Output: .bmp image generation from computed pixel data using a BITMAPINFOHEADER.
Final Recommendations
• If desired, include ancillary components like error handling or configuration files (like CMakeLists.txt) as supporting elements outside the primary flow.