36 lines
582 B
Plaintext
36 lines
582 B
Plaintext
#import "/src/lib.typ": *
|
|
|
|
#let m1 = mat.mat(
|
|
(1, 2, 3),
|
|
(4, 5, 6)
|
|
)
|
|
|
|
#let m2 = mat.mat(
|
|
(1, 2),
|
|
(3, 4),
|
|
(5, 6)
|
|
)
|
|
|
|
#let m3 = mat.mul(m1, m2)
|
|
#let m4 = mat.mul(m2, m1)
|
|
|
|
$A = #mat.display(m1) quad B = #mat.display(m2)\
|
|
C = A B = #mat.display(m3) quad D = B A = #mat.display(m4)$
|
|
|
|
#let m5 = mat.mat(
|
|
(1, 2),
|
|
(3, 4)
|
|
)
|
|
|
|
#let m6 = mat.mat(
|
|
(5, 7),
|
|
(6, 8)
|
|
)
|
|
|
|
#let m7 = mat.add(m5, m6)
|
|
#let m8 = mat.sub(m5, m6)
|
|
#let m9 = mat.transpose(m5)
|
|
|
|
$E = #mat.display(m5) quad F = #mat.display(m6)\
|
|
E + F = #mat.display(m7) quad E - F = #mat.display(m8)\
|
|
E^T = #mat.display(m9)$ |