WLJS LogoWLJS Notebook

LinearSolve

LinearSolve[m, b] finds a vector x that solves the matrix equation mx=bm \cdot x = b.

Examples

Solve linear systems:

m = {{1, 2}, {3, 4}}
b = {5, 11}

LinearSolve[m, b]
(* {1, 2} *)

(* Verify: m . x = b *)
m . {1, 2}
(* {5, 11} *)

Please visit the official Wolfram Language Reference for more details.

On this page