Before Big refactor
This commit is contained in:
@@ -24,6 +24,8 @@ def move_all_to_one_side(equation):
|
||||
step["after"] = new_expr
|
||||
|
||||
step["step"] = f"Subtract {sstr(clean(right_expr))} from both sides"
|
||||
step["left"] = f"-{sstr(clean(right_expr))}"
|
||||
step["right"] = f"-{sstr(clean(right_expr))}"
|
||||
step["rule"] = "Subtraction Property of Equality"
|
||||
return step
|
||||
|
||||
@@ -43,6 +45,8 @@ def add_both_sides(equation, value):
|
||||
step["after"] = f"{sstr(new_left_expr)} = {sstr(new_right_expr)}"
|
||||
|
||||
step["step"] = f"Add {sstr(value)} to both sides"
|
||||
step["left"] = f"+{sstr(value)}"
|
||||
step["right"] = f"+{sstr(value)}"
|
||||
step["rule"] = "Addition Property of Equality"
|
||||
return step
|
||||
|
||||
@@ -62,6 +66,8 @@ def subtract_both_sides(equation, value):
|
||||
step["after"] = f"{sstr(new_left_expr)} = {sstr(new_right_expr)}"
|
||||
|
||||
step["step"] = f"Subtract {sstr(value)} from both sides"
|
||||
step["left"] = f"-{sstr(value)}"
|
||||
step["right"] = f"-{sstr(value)}"
|
||||
step["rule"] = "Subtraction Property of Equality"
|
||||
return step
|
||||
|
||||
@@ -81,6 +87,8 @@ def divide_both_sides(equation, value):
|
||||
step["after"] = f"{sstr(new_left_expr)} = {sstr(new_right_expr)}"
|
||||
|
||||
step["step"] = f"Divide both sides by {sstr(value)}"
|
||||
step["left"] = f"÷{sstr(value)}"
|
||||
step["right] = f"÷{sstr(value)}"
|
||||
step["rule"] = "Division Property of Equality"
|
||||
return step
|
||||
|
||||
@@ -119,6 +127,8 @@ def multiply_both_sides(equation, value):
|
||||
|
||||
step["after"] = f"{sstr(new_left_expr)} = {sstr(new_right_expr)}"
|
||||
step["step"] = f"Multiply both sides by {sstr(value)}"
|
||||
step["left"] = f"×{sstr(value)}"
|
||||
step["right"] = f"×{sstr(value)}"
|
||||
step["rule"] = "Multiplication Property of Equality"
|
||||
return step
|
||||
|
||||
|
||||
Reference in New Issue
Block a user