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

Function rebuilt

src/compute-engine/rubi/normal-form.ts:49–56  ·  view source on GitHub ↗
(
  ce: ComputeEngine,
  e: Expression,
  ops: Expression[]
)

Source from the content-addressed store, hash-verified

47}
48
49function rebuilt(
50 ce: ComputeEngine,
51 e: Expression,
52 ops: Expression[]
53): Expression {
54 if (ops.every((o, i) => o === e.ops![i])) return e;
55 return ce._fn(e.operator, ops);
56}
57
58function factors(e: Expression): Expression[] {
59 return e.operator === 'Multiply' && e.ops ? [...e.ops] : [e];

Callers 1

toTimesPowerFunction · 0.85

Calls 1

_fnMethod · 0.65

Tested by

no test coverage detected