Three algorithms to iterate
$ yarn add complex-iterations
You can see the iterations of these algorithms here.
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);