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

Function addMultiIndexRecurrence

src/compute-engine/sequence.ts:576–586  ·  view source on GitHub ↗
(
  ce: ComputeEngine,
  name: string,
  variables: string[],
  expr: Expression
)

Source from the content-addressed store, hash-verified

574 pending.recurrence = { variable, latex: serializeLatex(expr.json) };
575 tryFinalizeSequence(ce, name);
576}
577
578/**
579 * Add a recurrence relation for a multi-index sequence definition.
580 * e.g., from `P_{n,k} := P_{n-1,k-1} + P_{n-1,k}`
581 *
582 * @param variables - The index variable names, e.g., ['n', 'k']
583 */
584export function addMultiIndexRecurrence(
585 ce: ComputeEngine,
586 name: string,
587 variables: string[],
588 expr: Expression
589): void {

Callers 1

core.tsFile · 0.90

Calls 3

getOrCreatePendingFunction · 0.85
serializeLatexFunction · 0.85
tryFinalizeSequenceFunction · 0.85

Tested by

no test coverage detected