There are lots of sites just google this "gaussian elimination C++". One of the hits directed me there: http://www.programmersheaven.com/download/29309/Download.aspx[^].

I would have like to recommend you a very good book by two authors "Ilja Nikolajewitsch Bronstein and Konstantin Adolfowitsch Semendjajew", but had to discover I couldn't find an english translation of it. It's a book that I used during my studies of computer science in Germany and has a great chapter on algorithms for solving linear equations of n degrees. Maybe you can google some more and find a translation.

The link I posted is to C++ code for a specialization of the "Gaussian Elimination" method called "Gauss-Seidel" algorithm.

Hope this helps some!

Best Regards,

Manfred

15,880,972 members