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

Function ints

src/compute-engine/rubi/rubi-utils.ts:761–763  ·  view source on GitHub ↗
(k: number)

Source from the content-addressed store, hash-verified

759 }
760 if (v.operator === 'Power' && v.ops && v.ops[0].symbol === ctx.x) {
761 const k = realNum(v.ops[1]);
762 if (k === null || !Number.isInteger(k) || k < 1) return false;
763 const coeffs = polyCoeffsX(u, ctx.x);
764 if (coeffs === null) return false;
765 if (!coeffs.every((c, i) => i % k === 0 || c.isSame(0) || zeroQ(c)))
766 return false;

Callers 1

rubi-utils.tsFile · 0.85

Calls 3

isLiteralIntegerFunction · 0.85
evaluateMethod · 0.65
mulMethod · 0.65

Tested by

no test coverage detected