2013-10: Solution Salvation
Many people have taken some sort of algebra class where you are presented with a set of linear equations like:
3x + 2y = 13
x - y = 1
The answer in this case is x=3 and y=2
Write code which solves this type of problem. Hint: this is the easiest of all of the problems presented here.
The first argument is a vector of the values for the equations and the second argument is a matrix of the coefficients.
Examples
Implementation
You can also run the tests via ⌘/shift + enter