Back to Symbolic Math (SymEngine)
sym.linsolve
Solves a system of linear equations.
Syntax
sym.linsolve(system, symbols)
Description
Solves a system of linear equations. Given a system of linear equations and the variables to solve for, returns the solution values. Uses Gaussian elimination internally.
Parameters
| Name | Description |
|---|---|
| system | - Array of linear equations (each treated as `expr = 0`). |
| symbols | - Array of symbols to solve for. |
Returns
Expr[]