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

Function expand

test/compute-engine/multivariate-gcd.test.ts:11–11  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

9// A fresh engine: the shared test engine assigns single-letter symbols.
10const ce = new ComputeEngine();
11const expand = (s: string) => ce.expr(['Expand', ce.parse(s)]).evaluate();
12const P = (s: string, vars: string[]) => mpolyFromBoxed(ce, ce.parse(s), vars)!;
13const same = (a: unknown, b: string) =>
14 (a as ReturnType<typeof ce.expr>).isSame(expand(b));

Callers 3

sameFunction · 0.70
gcdFunction · 0.70

Calls 3

evaluateMethod · 0.65
exprMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected