Talk:LU decomposition: Difference between revisions

Content added Content deleted
(matlab code gives wrong results)
Line 36: Line 36:


I presume the reason is the permutation matrix. I will try to correct it.
I presume the reason is the permutation matrix. I will try to correct it.

== Different output as per common literature ==

If one sees the document at:
file:///C:/Users/Gagandeep%20S.%20Datta/Downloads/New%20folder%20(2)/30_3_lu_decmp.pdf

For A= [{1,2,4;3,8,14;2,6,13}]
L= [{1,0,0;3,1,0;2,1,1}] and
U= [{1,2,4;0,2,2;0,0,3}].

But on applying the LU VBA code the output is different. We get,
L=[{1,0,0;0.333333333333333,1,0;0.666666666666667,-1,1}] and
H=[{3,8,14;0,-0.666666666666667,-0.666666666666666;0,0,3}].

Why is this so?