kalker/tests/matrices/operations.kalker
2022-01-19 23:46:36 +01:00

50 lines
973 B
Plaintext

m_1 = [1, 2, 3
4, 5, 6
7, 8, 9]
m_2 = [2, 3, 4
5, 6, 7
8, 9, 10]
m_3 = [1, 2, 1
0, 1, 0
2, 3, 4]
m_4 = [2, 5
6, 7
1, 8]
v = (1, 2, 3)
m_1 + m_2 = [3, 5, 7
9, 11, 13
15, 17, 19] and
m_2 - m_1 = [1, 1, 1
1, 1, 1
1, 1, 1] and
m_1 * m_2 = [36, 42, 48
81, 96, 111
126, 150, 174] and
[4, 9; 12, 3] / [2, 3; 4, 3] = [2, 3; 3, 1] and
m_1 + v = [2, 3, 4; 6, 7, 8; 10, 11, 12] and
m_1 - v = [0, 1, 2; 2, 3, 4; 4, 5, 6] and
m_1 * v = (14, 32, 50) and
m_1 / v = [1, 2, 3; 2, 5/2, 3; 7/3, 8/3, 3] and
m_1 + 2 = [3, 4, 5
6, 7, 8
9, 10, 11] and
m_1 - 2 = [-1, 0, 1
2, 3, 4
5, 6, 7] and
m_1 * 2 = [2, 4, 6
8, 10, 12
14, 16, 18] and
m_1 / 2 = [1/2, 1, 3/2
2, 5/2, 3
7/2, 4, 9/2] and
m_3 * m_4 = [15, 27
6, 7
26, 63]