コンテンツへスキップ

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標準形。それに至る2つの行列付き。

書き方

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]]] です。

    ソルバーで開く