.. highlightlang:: us .. index:: inv .. _inv: inv === .. us.tag inv ENGLISH math-lin-alg :ref:`inv` calculates the inverse of a square matrix. .. function:: mInverse = inv(m) .. us.return **Return Value** *mInverse* is the inverse of *m* .. us.params **Parameters** .. uparam:: m *m* is a real or complex matrix with nr(m) == nc(m). .. us.comment **Comment** An exception will be raised if the matrix is singular. .. seealso:: :ref:`overview-mathematic`, :ref:`det` :sub:`id-573011`