Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Matrix determinant (det)

Determinant of a square matrix.

With this function, the solver shows the steps whenever it finds them.

How to write it

det(matrix)

matrix
A matrix, written as a list of rows. Takes a matrix, written as a list of rows.

Examples

  • ∣1234∣=−2\displaystyle \begin{vmatrix} 1 & 2 \\ 3 & 4 \end{vmatrix} = -2
    det([[1, 2], [3, 4]])

    In the solver, det([[1, 2], [3, 4]]) gives -2.

    Open in the solver
  • ∣abcd∣=ad−bc\displaystyle \begin{vmatrix} a & b \\ c & d \end{vmatrix} = a d-b c
    det([[a, b], [c, d]])

    In the solver, det([[a, b], [c, d]]) gives a*d - b*c.

    Open in the solver
  • diagonal

    The diagonal of a matrix, as a list.

  • cross

    Cross product of two vectors in three dimensions.

  • diagonal_matrix

    A matrix with the given list on its diagonal and zeros elsewhere.

  • cholesky_decomposition

    Cholesky decomposition of a symmetric positive definite matrix.

  • dot

    Dot product of two vectors, or product of two matrices.

  • characteristic_polynomial

    Characteristic polynomial of a square matrix in a variable.