complex-iterations
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i complex-iterations

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

15.5 kB

Total Files

5

Last publish

Collaborators

  • adamkecskes