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

Function nonCanon

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

Source from the content-addressed store, hash-verified

697 `);
698 expect(checkPower('{7\\sqrt{13}}^{0.5}')).toMatchInlineSnapshot(`
699 box = ["Power", ["InvisibleOperator", 7, ["Sqrt", 13]], 0.5]
700 canonForms = ["Power", ["InvisibleOperator", 7, ["Sqrt", 13]], 0.5]
701 canonical = ["Power", ["Multiply", 7, ["Sqrt", 13]], 0.5]
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(`

Callers 1

expComplexNumFunction · 0.85

Calls 2

parseMethod · 0.65
exprMethod · 0.65

Tested by

no test coverage detected