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

Function getComplexParts

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

Extract finite real and imaginary parts from a boxed numeric value.

(
  op: Expression
)

Source from the content-addressed store, hash-verified

24export const FRACTALS_LIBRARY: SymbolDefinitions[] = [
25 {
26 Mandelbrot: {
27 description:
28 'Smooth escape-time value for the Mandelbrot set. Returns 1 for points inside the set, values in [0,1) for escaping points.',
29 examples: ['Mandelbrot(0, 100)', 'Mandelbrot(1 + i, 100)'],
30 complexity: 1200,
31 signature:
32 '(c: broadcastable<complex>, maxIterations: broadcastable<integer>) -> real',
33 parameters: {
34 c: {
35 description:
36 'The point of the complex plane, the constant of `z^2 + c`.',
37 sample: '-0.5 + 0.5i',

Callers 1

fractals.tsFile · 0.85

Calls 2

isNumberFunction · 0.90
isFiniteFunction · 0.85

Tested by

no test coverage detected