跳转到内容

This page is also in English.

Read it in English

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

Léela en español

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

日本語で読む

smith_decomposition 函数

整数矩阵的 Smith 标准形,以及得到它的两个矩阵。

怎么写

smith_decomposition(matrix)

matrix
整数矩阵。接受一个矩阵,写作行组成的列表。

示例

  • smith_decomposition⁡((2468))=[(103−1),(2004),(1−201)]\displaystyle \operatorname{smith\_decomposition}\left(\begin{pmatrix} 2 & 4 \\ 6 & 8 \end{pmatrix}\right) = \left[ \begin{pmatrix} 1 & 0 \\ 3 & -1 \end{pmatrix}, \begin{pmatrix} 2 & 0 \\ 0 & 4 \end{pmatrix}, \begin{pmatrix} 1 & -2 \\ 0 & 1 \end{pmatrix} \right]
    smith_decomposition([[2, 4], [6, 8]])

    在求解器中,smith_decomposition([[2, 4], [6, 8]]) 的结果是 [[[1, 0], [3, -1]], [[2, 0], [0, 4]], [[1, -2], [0, 1]]]。

    在求解器中打开