Method on @sym: inv (A)

Symbolic inverse of a matrix.

Examples:

A = sym([1 2; 3 4]);
inv(A)
  ⇒ ans = (sym 2×2 matrix)
      ⎡-2    1  ⎤
      ⎢         ⎥
      ⎣3/2  -1/2⎦

If the matrix is singular, an error is raised:

A = sym([1 2; 1 2]);
inv(A)
  -| ??? ... Matrix det == 0; not invertible...

See also: @sym/ldivide, @sym/rdivide.

Package: symbolic