2
$\begingroup$

I am making a script that's solving algebra. I am 16 years old so my script should be able to solve all middle school equations. (Because this is the level I have when it comes to maths. Got the grade: A)

Do anyone have a complete recipe that would apply to all equations?

I've come up with: (I'm from Norway, so the definitions may be a bit odd...)

  1. Multiply in powers outside of brackets.
  2. Try to sum the terms inside the brackets.
  3. Multiply variables, brackets or numbers into a bracket. ($5x(3x+5) = 15x^2+25x$)
  4. Remove unnecessary brackets. (Brackets with + or - in front.)
  5. Sum all the terms.
  6. Sort the terms with $x$s on the left side of the equation sign. The rest on the other side. (Remember to switch negative terms to positive terms and positive terms to negative terms).
  7. Sum all the terms again.
  8. Divide by eventually numbers multiplied with $x$. ($5x = 25$, divide all the terms with $5$ to get $x=5$).

Do you have a recipe that works for every equation you get in middle school, so that I can interpret that into my script?

Thanks! :D

  • 0
    In UK English it's called lower secondary school. I mean the equations you learn there.2011-11-20

1 Answers 1

0

This is somewhat asinine because you often can solve "middle school level" equations more easily by ignoring some of your steps. For instance, it is sometimes more proactive and intelligent to keep parantheses in equations than to completely simplify everything, especially if you are dealing with factors that can be reduced.

  • 0
    Yes, you are correct. Thank you! So simplify the parentheses if they cannot be reduced.2012-05-30