powered by
Find x in Ax = b. If b not supplied, the inverse of A is returned.
x
Ax = b
b
A
solve_lin(A, b)
matrix
vector
if (has_sympy()) { A <- matrix_sym(2, 2, "a") b <- vector_sym(2, "b") # Inverse of A: solve_lin(A) %*% A |> simplify() # Find x in Ax = b x <- solve_lin(A, b) A %*% x |> simplify() }
Run the code above in your browser using DataLab