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

Function same

test/compute-engine/multivariate-gcd.test.ts:13–14  ·  view source on GitHub ↗
(a: unknown, b: string)

Source from the content-addressed store, hash-verified

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));
15
16describe('MPoly kernel', () => {
17 test('round-trips a multivariate polynomial', () => {

Callers 1

Calls 2

expandFunction · 0.70
isSameMethod · 0.65

Tested by

no test coverage detected