1.0.2 • Published 3 years ago
complex-iterations v1.0.2
Complex Iterations
Three algorithms to iterate
Install
$ yarn add complex-iterations
Demo
You can see the iterations of these algorithms here.
MA algorithm (the classic Mandelbrot algorithm)
MB algorithm
MC algorithm
Usage
import iterate, {algorithms, Algorithm, AlgorithmParameters } from "complex-iterations";
import { Complex } from 'mathjs';
const options = {
Z: { re: 0, im: 0 },
C: { re: -0.1, im: 1 },
exp: 2,
}
const values = iterate(iterations: 100, algorithm: algorithms.MA, options);