Solve a linear system (linear_solve)
Solve a linear system A x = b given by its matrix and right-hand side.
With this function, the solver shows the steps whenever it finds them.
How to write it
linear_solve(matrix, b)
The vector x with A x = b.
- matrix
- The coefficient matrix A. Takes a matrix, written as a list of rows.
- b
- The right-hand side, as a list. Takes a list.
Examples
linear_solve([[2, 1], [1, 3]], [3, 5])In the solver,
Open in the solverlinear_solve([[2, 1], [1, 3]], [3, 5])gives[4/5, 7/5].
Related functions
- numeric_solve
Solve equations numerically.
- solve
Solve equations for one or more unknowns.
- solve_all
Describe the complete solution set of equations and inequalities.
- solve_identity
Find the values of the parameters that make an equation true for every value of the variable.
- least_squares
The least-squares solution of A x = b.
- find_root
Find a root numerically, from a starting value.