Exercise algebra.equations.linear.balance
Description
Solve a linear equation using only balance rules.
Derivation
![](http://ideas.cs.uu.nl/images/external.png)
-5*(x+1) == 9*(x+4)-5
⇒ algebra.equations.linear.balance.distribute-5*x-5 == 9*x+31
⇒ algebra.equations.linear.balance.var-right-plus, term=5*x-5 == 14*x+31
⇒ algebra.equations.linear.balance.con-left-minus, term=31-36 == 14*x
⇒ algebra.equations.linear.balance.scale-to-one, factor=14-18/7 == x
⇒ algebra.equations.linear.flipx == -18/7