a1,1x1 | + | a1,2x2 | + | ... | + | a1,nxn | = | b1 |
a2,1x1 | + | a2,2x2 | + | ... | + | a2,nxn | = | b2 |
... | + | ... | + | ... | + | ... | = | ... |
an,1x1 | + | an,2x2 | + | ... | + | an,nxn | = | bn |
Pierwszy etap algorytmu zwany jest etapem eliminacji zmiennych.
a1,1x1 | + a1,2x2 | + a1,3x3 | + ... | + a1,n-1xn-1 | + a1,nxn | = b1 |
a'2,2x2 | + a'2,3x3 | + ... | + a'2,n-1xn-1 | + a'2,nxn | = b'2 | |
a''3,3x3 | + ... | + a''3,n-1xn-1 | + a''2,nxn | = b''3 | ||
... | ... | = ... | ||||
a'''n,nxn | = b'''n |
xn = | b'''n |
a'''n,n |
xi = | b''i - a''i,nxn - ... - a''i,i+1xi+1 | , dla i = n-1, n-2, ... ,1 |
a''i,i |