in reply to Re: How would you solve a user-inputted simple one-variable Linear Equation
in thread How would you solve a user-inputted simple one-variable Linear Equation

Gaussian Elimination on a single variable? Okay...

I don't want to use a pre-made library, I would like to do this all with my 'own' code, so to speak. You used the word "either" in your last sentence, but only gave one thing? Thanks for the response!

  • Comment on Re^2: How would you solve a user-inputted simple one-variable Linear Equation

Replies are listed 'Best First'.
Re^3: How would you solve a user-inputted simple one-variable Linear Equation
by Corion (Patriarch) on Apr 25, 2015 at 16:56 UTC

    Sorry, the other part of the "either" would be to call any linear solver program yourself.

    If you only have one linear equation, the solution is to simply restate the formula in the form

    a*x +b = 0

    From that, the solution is immediately clear.