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

Function checkNumber

test/compute-engine/canonical-form.test.ts:703–704  ·  view source on GitHub ↗
(input: string | ExpressionInput)

Source from the content-addressed store, hash-verified

701 canonical = ["Sqrt", ["Multiply", 7, ["Sqrt", 13]]]
702 `);
703 //note: for the following two cases, 'fully'-canonical transforms 'Divide -> Multiply' (this
704 //being preferred to facilitate further ops.)
705 expect(checkPower('{a/3}^{1/3}')).toMatchInlineSnapshot(`
706 box = ["Power", ["Divide", "a", 3], ["Divide", 1, 3]]
707 canonForms = ["Root", ["Divide", "a", 3], 3]

Callers 1

Calls 1

checkFormsFunction · 0.85

Tested by

no test coverage detected