(s: string)
| 9 | // A fresh engine: the shared test engine assigns single-letter symbols. |
| 10 | const ce = new ComputeEngine(); |
| 11 | const expand = (s: string) => ce.expr(['Expand', ce.parse(s)]).evaluate(); |
| 12 | const P = (s: string, vars: string[]) => mpolyFromBoxed(ce, ce.parse(s), vars)!; |
| 13 | const same = (a: unknown, b: string) => |
| 14 | (a as ReturnType<typeof ce.expr>).isSame(expand(b)); |