Skip to content

Commit ae0f981

Browse files
authored
fix: dispatch options (including rules) to simplifyOperands in simplifyNonCommutativeFunction (#307)
(This inadvertently resulted in *full*-rule simplification of all operands for all functions Correcting this has resulted in *no broken tests*)
1 parent 52071e4 commit ae0f981

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compute-engine/boxed-expression/simplify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ function simplifyNonCommutativeFunction(
407407
let last = result.at(-1)!.value;
408408
if (last.isSame(expr)) return steps;
409409

410-
last = simplifyOperands(last);
410+
last = simplifyOperands(last, options);
411411

412412
// If the simplified expression is not cheaper, we're done.
413413
// Exception: power combination results (e.g., -4·2^x → -2^(x+2)) may be

0 commit comments

Comments
 (0)