1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ChatGPTの使い方はChatGPTに聞けばいい ~ 行列計算させてみた(失敗)

Posted at

How to input a matrix of mathematics to you.

To input a matrix of mathematics to me, you can use the following format:

(中略)

For example, the following is a 3x3 matrix:

[ 1, 2, 3 ]
[ 4, 5, 6 ]
[ 7, 8, 9 ]

You can copy and paste this format when inputting a matrix to me. Alternatively, you can use a math typesetting tool or software, such as LaTeX or MathJax, to format your matrix and then input the resulting code to me.

なんか教えてくれました。
というわけで試しに逆行列を計算させてみます。

Calculate the invert of below matrix:

[ 1, 2, 3 ]
[ 4, 5, 6 ]
[ 7, 8, 9 ]

※invertじゃなくてinverseが正のようだが、通じた模様

(中略)

Therefore, the inverse of the matrix A does not exist.

適当にコピペして逆行列を計算させようとしましたが、「この行列の逆行列は存在しません」とのことで、参りました。。
たしかに、第2行と第3行から第1行を減算すると、第2行と第3行がスカラー倍の関係になるので、行列式が0になって逆行列は存在しない。

Calculate the invert of below matrix:

[ 1, 1 ]
[ 0, 1 ]

A^-1 = [ 1, 0 ]
[ 0, 1 ]

「この逆行列が単位行列なわけあるかいっ」と心の中で突っ込みつつ

i think it's incorrect.

I apologize for the mistake in my previous response. The inverse of the matrix

(中略)

A^-1 = [ 1, 0 ]
[ -1, 1 ]

なんかそれっぽく返って来ましたが、検算(行列の乗算)してみると単位行列にならない・・・

A^-1を転置してみるとあってそうなので(日本語で)突っ込んでみたが以下のように会話がかみ合わず断念。。

あなたは行列の掛け算をするときに、右オペランドの行列を転置行列にしていませんか?

いいえ、私は行列の掛け算をする際に、右オペランドの行列を転置行列にすることはありません。もし私の前の回答で誤解を招くような表現があった場合、お詫び申し上げます。
例えば、先程の問題について、以下のように計算しています:

A = [ 1, 1 ]
    [ 0, 1 ]

A^-1 = [ 1, 0 ]
       [ -1, 1 ]

A * A^-1 = [ 1, 1 ] * [ 1, 0 ]    =  [ 1, 0 ]
          [ 0, 1 ]   [ -1, 1 ]       [ 0, 1 ]

謎仕様・・・こういう表記法ということなのか(?)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?