Numerical methods
Solving the system
This can be written in matrix form
Or agumented matrix
For this case, there is nothing much to debate to talk about.
The real one that we need to notice is when there is a 0 on the diagonal.
To use the above algorim for GE, we must have diagonal coef
The thing we need to know about this that the execution of RRE is
Here we split an system
Then we let
For matrix:
Can be slit into LU:
from the example we can see the following:
lower matrix meanings that all the entries on the upper diagonal = 0 and entries on the diagonal = 1.
upper matrix meaning that all the entries on the lower diagonal = 0.
The entries of lower matrix
The entries of upper marix = - entries of lower matrix
Now, we can solve the matrix first with forward subsitution, then backward subsitution.
First concern memeory usage we split the matrix into LU which double the memory usage. It is not neccessary the case because the uper matrix has all the lower index to be 0 and vice versa for the lower one, we can save memory by storing both of those matrix in one like the following:
okay, people often say that LUD is better than GE in computation. Why?
At first glance, we see that Split A = LU takes
The coest of splitting is already as expensive as whole GE.
The saving grace comes from when we solving the same matrix A but with different b. This is when we get our avantages. we split it once taking
If you read any book, it will say something along the line: if we have diagonal entry to be 0, multiply both side with a permutation matrix. A permutation matrix when multiply with it, the orignal matrix swap its rows. So, it is just a swap rows operation.
In numerical computing, "iterative method" meaning that we do not solve for solution explicitly, but instread using previous iteration(s) to produce result of the next iteration.
But then you would beg the question: "but hey, I follow this stranger, will I ended up somewhere? or will I ended up aimlessly wandering in the fog of lost soul?" - Avatar if you get me 😬.
Therefore, the question about Convergence is utmost important in iterative method setting.
First, let's look at an example:
what we do is to re-write in
And the format of of iterative method is going to be:
well at this part, you might wonder, so what is the value for
fun part, you have to guess, and this guess also has affect on the convergence of the system.