Possible Duplicate:
Solving a linear equation
I need to programmatically solve a system of linear equations in C# AND VB
Here's an example of the equations:
12.40 = a * 56.0 + b * 27.0 + tx
-53.39 = a * 12.0 + b * 59.0 + tx
14.94 = a * 53.0 + b * 41.0 + tx
I'd like to get the best approximation for a, b, and tx.
Should i use some sort of matrix class or something?