Skip to content

UriSeligmann/Newton_Fractal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Newton Fractal Viewer

A high-performance GPU-accelerated Newton fractal generator with an interactive PyQt6 interface.

Features

  • GPU Acceleration: Uses CuPy for fast computation on NVIDIA GPUs
  • Interactive Zooming: Click and drag to zoom into fractal regions
  • Custom Functions: Enter any complex function (e.g., z**3 - 1, exp(z) - sin(z))
  • High Resolution: Adjustable resolution multiplier for detailed renders
  • Export: Save fractals as PNG/JPEG images

Screenshots

Main Interface Main application interface

Fractal Generation Real-time fractal computation with progress tracking

Example Fractals

Function Result
$z^3 - 1$ z^3-1
$0.1 \cdot e^z - \sin(z)$ 0.1*exp(z)-sin(z)
$e^{\sin(z^3) + \cos(z^3)} + 3$ complex function
$\tan(z^3) + \cos(z^3) + \sin(z^3)$ trigonometric

Requirements

  • Python 3.7+
  • PyQt6
  • CuPy (NVIDIA GPU with CUDA 13.0+ support)
  • SymPy
  • NumPy
  • Hardware: Strong GPU recommended (tested on GeForce RTX 4060)

Installation

pip install PyQt6 cupy sympy numpy

Usage

python main.py

Enter a complex function in the input field and click "Compute" to generate the fractal. Use left-click and drag to zoom into interesting regions.

Controls

  • Function Input: Enter mathematical expressions using z as the complex variable
  • Compute: Generate fractal for the current function
  • Resolution Multiplier: Increase for higher quality (slower computation)
  • Reset Zoom: Return to full fractal view
  • Save Image: Export current fractal as image file
  • Exit: Close application

About

Small Newton fractal engine built in one day, with a basic interactive interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages