学習環境
- Surface 3 (4G LTE)、Surface 3 タイプ カバー、Surface ペン(端末)
- Windows 10 Pro (OS)
- Nebo(Windows アプリ)
- iPad Pro + Apple Pencil
- MyScript Nebo(iPad アプリ)
- 参考書籍
数学読本〈6〉線形写像・1次変換/数論へのプレリュード/集合論へのプレリュード/εとδ/落ち穂拾い など(松坂 和夫(著)、岩波書店)の第22章(図形の変換の方法 - 線形写像・1次変換)、22.2(平面の1次変換)、1次変換の合成、問6.を取り組んでみる。
-
f の行列。
A(xy)=(x-y)(abcd)(xy)=(x-y)ax+by=xcx+dy=-ya=1b=0c=0d=-1A=(100-1)g の行列。
A(xy)=(-x-y)A=(-100-1)h の行列。
A=(0110)(100-1)(-100-1)=(-1001)- (-100-1)(100-1)=(-1001)
- (0110)(100-1)=(0-110)
- (100-1)(0110)=(01-10)
- (-100-1)(0110)=(0-1-10)
- (0110)(-100-1)=(0-1-10)
コード(Emacs)
Python 3
#!/usr/bin/env python3 from sympy import pprint, Matrix f = Matrix([[1, 0], [0, -1]]) g = Matrix([[-1, 0], [0, -1]]) h = Matrix([[0, 1], [1, 0]]) for i, t in enumerate([f * g, g * f, h * f, f * h, g * h, h * g], 1): print(f'({i})') pprint(t) print()
入出力結果(Terminal, Jupyter(IPython))
$ ./sample6.py (1) ⎡-1 0⎤ ⎢ ⎥ ⎣0 1⎦ (2) ⎡-1 0⎤ ⎢ ⎥ ⎣0 1⎦ (3) ⎡0 -1⎤ ⎢ ⎥ ⎣1 0 ⎦ (4) ⎡0 1⎤ ⎢ ⎥ ⎣-1 0⎦ (5) ⎡0 -1⎤ ⎢ ⎥ ⎣-1 0 ⎦ (6) ⎡0 -1⎤ ⎢ ⎥ ⎣-1 0 ⎦ $
0 コメント:
コメントを投稿