Problem with LU decomposition


ecc1028
10-03-2005, 09:51 AM
I have noticed something odd using the LU decomposition when solving a system of linear equations. I am using a 3x3 matrix to solve for 3 unknowns.

It is of the form

Ax=b

While it should be premultiplying b, by the inverse it is post multiplying it instead giving me different results.

So where it should be

x=A^(-1)b

It is giving me the answers

x=bA^(-1)

I have attached a jpeg showing what I mean.

ecc1028
10-03-2005, 10:27 AM
Nevermind. I just realized what I did. Wasn't thinking when I originally posted.