(u: Expression)
| 1351 | /** flatten Multiply/Divide/Negate into a factor list (denominator factors |
| 1352 | * become synthetic Power(f, −1) so the RtAux power/odd-exponent logic |
| 1353 | * sees them) */ |
| 1354 | function rtFactors(u: Expression): Expression[] { |
| 1355 | const ce = u.engine; |
| 1356 | const out: Expression[] = []; |
| 1357 | const walk = (e: Expression, inv: boolean): void => { |
| 1358 | if (e.operator === 'Multiply' && e.ops) { |
| 1359 | for (const f of e.ops) walk(f, inv); |
| 1360 | return; |
no test coverage detected