GithubHelp home page GithubHelp logo

netbrot's Introduction

Netbrot

This repository contains some experiments for vector Mandelbrot sets. We look at the map

$$f(z) = (A z)^2 + c,$$$$

where $A \in \mathbb{C}^{n \times n}$ and $z \in \mathbb{C}^n$ with just $c \in \mathbb{C}$. This gives some interesting results that are not directly analogous to the standard scalar case:

  • The escape radius is no longer just $2$.
  • The periodicity of the various points is weirder.
  • There are (possibly) multiple attractive or repelling fixed points, not just $z = 0 + 0\imath$.

Additional math needed! Most of these ideas have no proofs at the moment, but seem fun to investigate!

Install

This is a Rust app and uses all the standard build infrastructure. To build it, just run

cargo build --release

Usage

This is currently very experimental and just meant for playing around. Even so, it's nicely parallelized with rayon and colored.

It can do the usual orbit iteration

netbrot --color orbit -- out.png

and it can also look at periodicity of various points

netbrot --color period -- out.png

Example

As a simple example, we take the matrix

$$\begin{bmatrix} 1 & 0.8 \\\ 1 & -0.5 \end{bmatrix}$$

Netbrot 2x2

License

The code is MIT licensed (see LICENSES/MIT.txt). It was originally copied from the Rust Programming example here and has since evolved a bit.

netbrot's People

Contributors

alexfikl avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.