|
LUSolve
|
Built-in function
|
|
Solves systems of the form LUx = b. Performs a double back substitution to solve a system of linear equations.
|
Syntax
|
LUSolve(m,b)
|
Notes
|
Argument 'm'is the return value of a call to LUDecompose and 'b'is the right-hand side of the system. Works on matrices only. 'm' is the matrix returned by LUDecompose and 'b' is a column-vector of matching dimension. Returns a column-vector containing the solution.
|
Examples
|
To solve Ax = b, where A is a non-degenerate square matrix: m = LUDecompose(A); x = LUSolve(m,b);
|
|
Last modified: 8/20/2002 |
|
|