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

Function factors

src/compute-engine/rubi/normal-form.ts:58–60  ·  view source on GitHub ↗
(e: Expression)

Source from the content-addressed store, hash-verified

56}
57
58function factors(e: Expression): Expression[] {
59 return e.operator === 'Multiply' && e.ops ? [...e.ops] : [e];
60}
61
62function mul(ce: ComputeEngine, fs: Expression[]): Expression {
63 let flat = fs.flatMap(factors).filter((f) => !f.isSame(1));

Callers 1

toTimesPowerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected