(u: Expression, x: string)
| 2208 | const split = splitMonoFactor(u, x); |
| 2209 | if (split === null) return null; |
| 2210 | const { scale, exp: mExp, rest } = split; |
| 2211 | if (rest === null) return null; |
| 2212 | const gp = genBinomialPartsX(rest, x); |
| 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; |
no test coverage detected