lusolve#
Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.
Available in: math cells, REPL.
Syntax#
x=lusolve(A, b)
x=lusolve(lu, b)
Arguments and behavior#
Arguments must match one of the syntax forms above. Use the example as a starting point; arrays and numeric types are accepted only by compatible overloads. The example returns matrix.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
a = [-2, 3; 2, 1]
b = [11, 9]
x = lusolve(a, b)Interactive examples could not load. You can still copy the expressions.
Expected result: matrix.