日本語 English
株式会社ヒューリンクス
TEL:03-5642-8384
営業時間:9:00-17:30

inv

関数 inv は、ブロックとして与えられた可逆正方行列の逆行列を生成します。

構文

inv(block)

引数 block には、正方行列からなる実数値のブロックを指定します。行数と列数は必ず同じにする必要があります。この関数は、与えられた正方行列の逆行列からなる実数値のブロックを返します。

  • 以下の行列が block(2,3,4,5) にある場合、
    1.00 3.00 4.00
    2.00 1.00 3.00
    3.00 4.00 2.00

    block(2,7)=inv(block(2,3,4,5)) は、block (2,7,4,9) に以下の逆行列を生成します。

    -0.40 0.40 0.20
    0.20 -0.40 0.20
    0.20 0.20 -0.20

inv

The inv function generates the inverse matrix of an invertible square matrix provided as a block.

Syntax

inv(block)

The block argument is a block of numbers with real values in the form of a square matrix. The number of rows must equal the number of columns. The function returns a block of numbers with real values in the form of the inverse of the square matrix provided.

Example

  • For the matrix:
    1.00 3.00 4.00
    2.00 1.00 3.00
    3.00 4.00 2.00

    in block(2,3,4,5) the operation block(2,7)=inv(block(2,3,4,5)) generates the inverse matrix:

    -0.40 0.40 0.20
    0.20 -0.40 0.20
    0.20 0.20 -0.20

    in block (2,7,4,9).