Exercise algebra.equations.linear.balance
Description
Solve a linear equation using only balance rules.
Derivation
-14 == 3*(1/5*x-1)+5-7*x
⇒ algebra.equations.linear.flip3*(1/5*x-1)+5-7*x == -14
⇒ algebra.equations.linear.balance.distribute3/5*x+2-7*x == -14
⇒ algebra.equations.linear.balance.remove-div, factor=53*x+10-35*x == -70
⇒ algebra.equations.linear.balance.collect-32*x+10 == -70
⇒ algebra.equations.linear.balance.con-right-minus, term=10-32*x == -80
⇒ algebra.equations.linear.balance.scale-to-one, factor=-32x == 5/2