MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / getMaxIter

Function getMaxIter

src/compute-engine/library/fractals.ts:37–42  ·  view source on GitHub ↗

Extract a finite positive integer from a boxed numeric value.

(op: Expression)

Source from the content-addressed store, hash-verified

35 description:
36 'The point of the complex plane, the constant of `z^2 + c`.',
37 sample: '-0.5 + 0.5i',
38 },
39 maxIterations: {
40 description:
41 'The maximum number of iterations, a positive integer; a point that has not escaped by then counts as inside the set.',
42 sample: '100',
43 },
44 },
45 evaluate: ([c, maxIter], { engine: ce }) => {

Callers 1

fractals.tsFile · 0.85

Calls 3

isNumberFunction · 0.90
isFiniteFunction · 0.85
roundMethod · 0.45

Tested by

no test coverage detected