Special Case Identified

This commit is contained in:
2026-04-30 00:56:21 -04:00
parent 4e4440673b
commit 88160d086c
6 changed files with 29 additions and 2 deletions

View File

@@ -37,8 +37,8 @@ def add_both_sides(equation, value):
left_expr = parse_expr(left, transformations=transformations, evaluate=False)
right_expr = parse_expr(right, transformations=transformations, evaluate=False)
new_left_expr = left_expr + value
new_right_expr = right_expr + value
new_left_expr = clean(left_expr + value)
new_right_expr = clean(right_expr + value)
step["after"] = f"{sstr(new_left_expr)} = {sstr(new_right_expr)}"
step["step"] = f"Add both sides by {sstr(value)}"