Dear All,
I did the following calculation and found lu decomposition is Not accurate as I expected. For a set of linear equations (Ax=b), I know the accurate solution x_sol of it. I compared the following two cases and found lu decomposition is very Bad in accuracy: ([L,U] = lu(A))
- inv(L)*[A*x_sol – b]
- U*x_sol – inv(L)*b
I found the first case is very accurate (10e-14), but the second case has a difference as follows:
[U*x_sol – invL*b]
=
0.000000000000000 – 0.000000000000007i
-0.000000000000000 + 0.000000000000001i
-0.000037006789095 – 0.000015944272153i
-0.000970975504200 + 0.004054164127652i
0.000106135310812 + 0.000332352007079i
I hope somebody could help me to fix this problem. You have a good weekend.
Benson
Best Answer