Rubi FractionalPowerFactorQ: a factor of u is a complex constant or a * fractional power
(u: Expression)
| 2082 | case 'Add': |
| 2083 | case 'Subtract': { |
| 2084 | // fold terms through a mixed binomial/trinomial accumulator, |
| 2085 | // transcribing the Rubi sum cases |
| 2086 | let constA = ce.Zero; |
| 2087 | type Acc = |
| 2088 | | { kind: 'bin'; p: BinParts } |
| 2089 | | { kind: 'tri'; p: TriParts } |
| 2090 | | null; |
| 2091 | let acc: Acc = null; |
| 2092 | for (const t of sumTermsX(u)) { |
| 2093 | if (!t.has(x)) { |
| 2094 | constA = constA.add(t); |
| 2095 | continue; |
| 2096 | } |
| 2097 | const tri = trinomialPartsX(t, x); |
| 2098 | const next: Acc = tri |
| 2099 | ? { kind: 'tri', p: tri } |
| 2100 | : ((): Acc => { |
| 2101 | const bin = binomialPartsX(t, x); |
| 2102 | return bin ? { kind: 'bin', p: bin } : null; |
| 2103 | })(); |
| 2104 | if (next === null) return null; |
| 2105 | if (acc === null) { |
no test coverage detected