10x+4=7
3(x+9)=8x
Just following the basic math rules for solving linear equations? That's going to be a LOT of if/else statements will it not? Would it be best to break apart the input equation into two parts, left side and right side? And then go through rules on each side of the equation (distribution) etc, and then multiply/divide each side to get x by itself?I really want to do this is code, not using a module that's already been programmed to do this.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |