# 矩阵的行列式（Matrix determinant，det）

方阵的行列式。

使用这个函数时，求解器只要找到步骤就会展示。

## 怎么写

### det(matrix)

**matrix**

一个矩阵，写成行列表。接受一个矩阵，写作行组成的列表。

## 示例

- $\displaystyle \begin{vmatrix} 1 & 2 \\ 3 & 4 \end{vmatrix} = -2$

  `det([[1, 2], [3, 4]])`

  在求解器中，`det([[1, 2], [3, 4]])` 的结果是 `-2`。

  [在求解器中打开](https://zh.hilberon.com/?q=det%28%5B%5B1%2C%202%5D%2C%20%5B3%2C%204%5D%5D%29)
- $\displaystyle \begin{vmatrix} a & b \\ c & d \end{vmatrix} = a d-b c$

  `det([[a, b], [c, d]])`

  在求解器中，`det([[a, b], [c, d]])` 的结果是 `a*d - b*c`。

  [在求解器中打开](https://zh.hilberon.com/?q=det%28%5B%5Ba%2C%20b%5D%2C%20%5Bc%2C%20d%5D%5D%29)

## 相关函数

- [diagonal](https://zh.hilberon.com/library/diagonal)

  矩阵的对角线，以列表形式给出。
- [cross](https://zh.hilberon.com/library/cross)

  三维中两个向量的叉积。
- [diagonal_matrix](https://zh.hilberon.com/library/diagonal_matrix)

  对角线为给定列表、其余位置为零的矩阵。
- [cholesky_decomposition](https://zh.hilberon.com/library/cholesky_decomposition)

  对称正定矩阵的 Cholesky 分解。
- [dot](https://zh.hilberon.com/library/dot)

  两个向量的点积，或两个矩阵的乘积。
- [characteristic_polynomial](https://zh.hilberon.com/library/characteristic_polynomial)

  方阵关于某个变量的特征多项式。

---
Source: https://zh.hilberon.com/library/det
