cmatrix.Matrix.LX_B¶
- Matrix.LX_B()¶
Compute the LX=B system wher L is a lower matrix and B the result matrix. The system is solved by gauss.
Parameters
type
Description
L
Matrix
The lower matrix of the system
B
Matrix
The result matrix of the system
- Returns
- Matrix
1D Matrix representing the solution of the Lower X system
Examples
>>> m[0,0]=1 >>> m[1,0]=4 >>> m[1,1]=2 >>> m[2,0]=1 >>> m[2,1]=3 >>> m[2,1]=3 >>> m[2,2]=9 >>> b=Matrix(3,1) >>> b[0,0]=-1 >>> b[1,0]=3 >>> b[2,0]=1 >>> print(m) | +1.000 | +0.000 | +0.000 | | +4.000 | +2.000 | +0.000 | | +1.000 | +3.000 | +9.000 | printed >>> print(b) | -1.000 | | +3.000 | | +1.000 | printed >>> print(m.LX_B(m,b)) | -1.000 | | +3.500 | | -0.944 | printed