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

Function genTrinomialMatchQ

src/compute-engine/rubi/rubi-utils.ts:2215–2224  ·  view source on GitHub ↗
(u: Expression, x: string)

Source from the content-addressed store, hash-verified

2213 if (gp !== null) {
2214 const n = mExp.add(gp.n).evaluate();
2215 const q = mExp.add(gp.q).evaluate();
2216 if (zeroQ(n) || zeroQ(q)) return null;
2217 return {
2218 a: scale.mul(gp.a).evaluate(),
2219 b: scale.mul(gp.b).evaluate(),
2220 n,
2221 q,
2222 };
2223 }
2224 const bp = binomialPartsX(rest, x);
2225 if (bp !== null && !mExp.isSame(0)) {
2226 if (bp.a.isSame(0) || zeroQ(bp.a)) return null;
2227 const n = mExp.add(bp.n).evaluate();

Callers 1

rubi-utils.tsFile · 0.85

Calls 6

monoClassesXFunction · 0.85
zeroQFunction · 0.85
isSameMethod · 0.65
subMethod · 0.65
mulMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected