学習環境
- Surface 3 (4G LTE)、Surface 3 タイプ カバー、Surface ペン(端末)
- Windows 10 Pro (OS)
- Nebo(Windows アプリ)
- iPad Pro + Apple Pencil
- MyScript Nebo(iPad アプリ)
- 参考書籍
オイラーの贈物―人類の至宝eiπ=-1を学ぶ (吉田 武(著)、東海大学出版会)の第III部(オイラーの公式とその応用(Euler's Formula & Its Applications))、第9章(ベクトルと行列(Vector & Matrix))、9.6(行列の n 乘を求める)、固有値と固有ベクトル、問題6.を取り組んでみる。
det(A-λE)=0det((a00b))-λ(1001)=0det(a-λ00b-λ)=0(a-λ)(b-λ)=0α=a,β=bよって
An=bn-anb-a(a00b)+anb-abnb-aE=1b-a((bn-an)a+anb-abn00b(bn-an)+anb-abn)=1b-a(-an+1+anb00bn+1-abn)=1b-a(an(b-a)00bn(b-a))=(an00bn)
コード(Emacs)
Python 3
#!/usr/bin/env python3 from sympy import symbols, pprint, Matrix, MatrixSymbol, sqrt, solve a, b = symbols('a, b') n = symbols('n', integer=True) A = Matrix([[a, 0], [0, b]]) for t in [A, A ** n]: pprint(t) print()
入出力結果(Terminal, Jupyter(IPython))
$ ./sample6.py ⎡a 0⎤ ⎢ ⎥ ⎣0 b⎦ ⎡ n ⎤ ⎢a 0 ⎥ ⎢ ⎥ ⎢ n⎥ ⎣0 b ⎦ $
0 コメント:
コメントを投稿