(k: number)
| 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; |
no test coverage detected