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

Function polyCoeffsX

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

Source from the content-addressed store, hash-verified

349 if (m0 === null || m1 === null) return null;
350 return [
351 ...m0,
352 ...m1.map(([c, d]) => [c.neg(), d] as [Expression, number]),
353 ];
354 }
355 case 'Divide': {
356 if (ops[1].has(x)) return null;
357 const m = monomialsX(ops[0], x);
358 return m === null ? null : m.map(([c, d]) => [c.div(ops[1]), d]);
359 }
360 case 'Power': {
361 const e = realNum(ops[1]);
362 if (e === null || !Number.isInteger(e) || e < 0) return null;

Callers 13

intUncachedMethod · 0.90
collectFunction · 0.90
polyDivideXFunction · 0.85
rubi-utils.tsFile · 0.85
quadraticQXFunction · 0.85
binomialPartsXFunction · 0.85
trinomialPartsXFunction · 0.85
pseudoBinomialPartsXFunction · 0.85
derivativeDividesFunction · 0.85
fotAuxFunction · 0.85
coeffXFunction · 0.85
expandPartialFractionsFunction · 0.85

Calls 4

monomialsXFunction · 0.85
addMethod · 0.65
mapMethod · 0.65
evaluateMethod · 0.65

Tested by

no test coverage detected