( ce: ComputeEngine, e: Expression )
| 2650 | ): Expression { |
| 2651 | if (x === undefined) return mapTrigHeads(ce, e, TO_INERT); |
| 2652 | const walk = (u: Expression): Expression => { |
| 2653 | const ops = u.ops; |
| 2654 | if (!ops || ops.length === 0) return u; |
| 2655 | const newOps = ops.map(walk); |
| 2656 | let head = u.operator; |
| 2657 | if (TO_INERT[head] !== undefined && ops.length === 1) { |
| 2658 | const arg = ops[0]; |
| 2659 | const deg = polyDegreeX(arg, x); |
| 2660 | // Leave ACTIVE only a composite argument whose substitution / completing- |
| 2661 | // the-square reduction lands a VERIFYING closed form: |
no test coverage detected