Matrix division using LUdcmp and lubksb didnt work


Danni David
08-03-2006, 05:40 AM
I am a beginner in Numerical methods.I am using ludcmp and lubksb to do a matrix division. So I used this
A B C
1 2 3 1 14
4 5 6 2 32
7 8 9 3 50

I did a C/A by decompsing A and back substituting using C
what I expected is B , but it didnt work. The FAQ says I must have typed it wrong.. I can type the code here if someone wants it.

evgeny
08-08-2006, 03:34 AM
May be due to that matrix A in Your example is a singular matrix (Inverse[A] doesn't exist): their rows are linear depended.

Evgeny, Haifa