linalg(deprecated)
inverse
compute the inverse of a matrix
Calling Sequence
Parameters
Description
Examples
inverse(A)
A
-
square matrix
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[MatrixInverse], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function inverse computes the matrix inverse of A. An error occurs if the matrix is singular.
This function uses Cramer's rule for matrices of dimension less than or equal to 4 by 4, and for matrices with the 'sparse' indexing function.
For other matrices, the inverse is computed by applying the operations for the Gauss-Jordan reduction of A to an identity matrix of the same shape.
The command with(linalg,inverse) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔array⁡1,x,2,3
A≔1x23
inverse⁡A
−32⁢x−3x2⁢x−322⁢x−3−12⁢x−3
See Also
linalg(deprecated)[det]
linalg(deprecated)[gaussjord]
LinearAlgebra
Download Help Document