I'm currently trying to understand how to solve systems of equations using Gaussian elimination and back-substitution. I'm also trying to implement some computer algorithms that solve systems of equations using this method.

Now I know Wikipedia is not always a reliable source, but I thought it be helpful to get some sample problems from the Wikipedia entry on Guassian elimination. But, no matter how many times I try to solve it, I never get the answer specified on Wikipedia. Also, the computer algorithm I use doesn't get the Wikipedia answer either. So either I'm doing this totally wrong, or Wikipedia is wrong about it.

At first I thought it's more likely that I'm wrong than the Wikipedia article, so I tried solving the same system of equations using a professional computer algorithm, and I got the same solution. Also, when you plug in the above values for 2x + y - z = 8, you get a true statement. So it seems Wikipedia is wrong here, unless I'm totally missing something.

Can anyone confirm this? I would really appreciate it.

Thanks.

September 29th 2007, 07:48 PM

Jhevon

Quote:

Originally Posted by asiler

I'm currently trying to understand how to solve systems of equations using Gaussian elimination and back-substitution. I'm also trying to implement some computer algorithms that solve systems of equations using this method.

Now I know Wikipedia is not always a reliable source, but I thought it be helpful to get some sample problems from the Wikipedia entry on Guassian elimination. But, no matter how many times I try to solve it, I never get the answer specified on Wikipedia. Also, the computer algorithm I use doesn't get the Wikipedia answer either. So either I'm doing this totally wrong, or Wikipedia is wrong about it.

At first I thought it's more likely that I'm wrong than the Wikipedia article, so I tried solving the same system of equations using a professional computer algorithm, and I got the same solution. Also, when you plug in the above values for 2x + y - z = 8, you get a true statement. So it seems Wikipedia is wrong here, unless I'm totally missing something.

Can anyone confirm this? I would really appreciate it.

Thanks.

wikipedia is correct. your algorithm is wrong. note that the solutions given by your algorithm do not work in the last equation. plug them in and check

September 29th 2007, 07:56 PM

Soroban

Hello, asiler!

There is a simple way to find out who is right.. . Check the answers! . . . remember?

You'll find that their answers are correct.

Your answers: . .do not check out.

You solved a different system: .

September 29th 2007, 10:30 PM

asiler

Quote:

Originally Posted by Soroban

Hello, asiler!

There is a simple way to find out who is right.. . Check the answers! . . . remember?

You'll find that their answers are correct.

Your answers: . .do not check out.

You solved a different system: .

Thanks!

You're right. I need to be more careful when I'm copying down equations. I was inputting a positive 2 for the last equation.