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

Function someNegTermQ

src/compute-engine/rubi/rubi-utils.ts:1353–1357  ·  view source on GitHub ↗
(u: Expression)

Source from the content-addressed store, hash-verified

1351/** flatten Multiply/Divide/Negate into a factor list (denominator factors
1352 * become synthetic Power(f, −1) so the RtAux power/odd-exponent logic
1353 * sees them) */
1354function rtFactors(u: Expression): Expression[] {
1355 const ce = u.engine;
1356 const out: Expression[] = [];
1357 const walk = (e: Expression, inv: boolean): void => {
1358 if (e.operator === 'Multiply' && e.ops) {
1359 for (const f of e.ops) walk(f, inv);
1360 return;

Callers 1

rtAuxBodyFunction · 0.85

Calls 2

sumBaseTermsFunction · 0.85
negFormQFunction · 0.85

Tested by

no test coverage detected