Back to Linear Algebra
solve
Solve the linear system A * x = b.
Syntax
solve(A, b) → r
Backends
TypeScriptLAPACKNative BinaryWebAssembly
Description
Solve the linear system A * x = b.
Parameters
| Name | Description |
|---|---|
| A | Coefficient matrix |
| b | Right-hand side vector |
Returns
Solution vector x
Examples
Try It
>> solve([1, 2; 3, 4], [5, 6])