I have to disagree with Griff here. Cheating on homework is wrong, but sharing code is the whole point of codeproject. Google is a good start, but if you are looking for source code, there are places to better focus your search. There are sourceforge.net, and github.com of course. Check your Linux distribution and see if what you need is available as a software package. (If you don't run Linux, it's never too late to start.) rosettacode.org has 1000 problems solved in dozens of programming languages. Don't forget wikipedia. Correct source code tends to get deleted from wikipedia pages, so you can check the article history to see if it was in an old edition.
Since this is a numerical problem, there are more specific resources. netlib.org has a collection of code used by scientists that has been grown over 30 years. Of special historic importance is SLATEC, the library developed by the US nuclear weapons labs and placed into the public domain. Also, from the civilian side, look into the Bureau of Standards Core Mathematical Library:
ACMD Software Products | NIST[
^] .
There are projects right here at codeproject.com in Visual Basic (
High precision native Gaussian Elimination[
^]) and in C# (
Linear Equation Solver - Gaussian Elimination (C#)[
^]) What you are looking for is available on the web from rosettacode:
[
Gaussian Elimination - Rosetta Code]. Half of engineering is knowing what's in the catalog.