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

Function scaleTri

src/compute-engine/rubi/rubi-utils.ts:1763–1768  ·  view source on GitHub ↗
(s: Expression, t: TriParts)

Source from the content-addressed store, hash-verified

1761 constA = constA.add(t);
1762 continue;
1763 }
1764 const p = binomialPartsX(t, x);
1765 if (p === null) return null;
1766 if (acc === null) acc = p;
1767 else if (zeroQ(acc.n.sub(p.n)))
1768 acc = {
1769 a: acc.a.add(p.a).evaluate(),
1770 b: acc.b.add(p.b).evaluate(),
1771 n: acc.n,

Callers 1

trinomialPartsXFunction · 0.85

Calls 2

evaluateMethod · 0.65
mulMethod · 0.65

Tested by

no test coverage detected