学習環境
- 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 乘を求める)、9.6.2(行列に関する指数関数)、問題7.を取り組んでみる。
 - よって固有値は a、 b である。 - よって、 
コード(Emacs)
Python 3
#!/usr/bin/env python3
from sympy import symbols, pprint, Matrix, exp
a, b = symbols('a, b')
n = symbols('n', integer=True)
A = Matrix([[a, 0],
            [0, b]])
for t in [A, exp(A)]:
    pprint(t)
    print()
入出力結果(Terminal, Jupyter(IPython))
$ ./sample7.py ⎡a 0⎤ ⎢ ⎥ ⎣0 b⎦ ⎡ a ⎤ ⎢ℯ 0 ⎥ ⎢ ⎥ ⎢ b⎥ ⎣0 ℯ ⎦ $
 
0 コメント:
コメントを投稿