( ce: ComputeEngine, name: string, variables: string[], expr: Expression )
| 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 | */ |
| 584 | export function addMultiIndexRecurrence( |
| 585 | ce: ComputeEngine, |
| 586 | name: string, |
| 587 | variables: string[], |
| 588 | expr: Expression |
| 589 | ): void { |
no test coverage detected