コンテンツへスキップ

This page is also in English.

Read it in English

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

Léela en español

本页也有简体中文版本。

阅读简体中文版本

LU分解(lu_decomposition)

行列のLU分解。下三角因子、上三角因子、行の順序です。

書き方

lu_decomposition(matrix)

matrix
正方行列。行列(行のリストとして記述)を受け取ります。

例題

  • lu_decomposition⁡((4363))=[(10231),(6301),[2,1]]\displaystyle \operatorname{lu\_decomposition}\left(\begin{pmatrix} 4 & 3 \\ 6 & 3 \end{pmatrix}\right) = \left[ \begin{pmatrix} 1 & 0 \\ \frac{2}{3} & 1 \end{pmatrix}, \begin{pmatrix} 6 & 3 \\ 0 & 1 \end{pmatrix}, \left[ 2, 1 \right] \right]
    lu_decomposition([[4, 3], [6, 3]])

    ソルバーでは、lu_decomposition([[4, 3], [6, 3]]) の答えは [[[1, 0], [2/3, 1]], [[6, 3], [0, 1]], [2, 1]] です。

    ソルバーで開く