linalg(deprecated)
det
determinant of a matrix
Calling Sequence
Parameters
Description
Examples
det(A)
det(A, sparse)
A
-
two-dimensional square matrix
sparse
optional directive
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Determinant], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function det computes the determinant of the given matrix.
The second argument (optional) specifies that the computational method of minor expansion should be used. This works well for sparse matrices.
With no extra argument, a decision is made automatically whether to use minor expansion or Gaussian elimination (or a combination of both). Specifying the extra argument eliminates the overhead of the decision process if you happen to know ahead of time that minor expansion will work best.
The command with(linalg,det) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔hilbert⁡3
A≔11213121314131415
det⁡A
12160
B≔matrix⁡2,2
B≔`?`1,1`?`1,2`?`2,1`?`2,2
det⁡B
B1,1⁢B2,2−B1,2⁢B2,1
See Also
linalg(deprecated)[gausselim]
LinearAlgebra
Download Help Document