Linear Algebra and the C Language/a0ga


Commutative matrices:

In linear algebra, two matrices A and B are said to commute if AB=BA... Wikipedia: Commuting matrices


Commutative matrices: (A+B)**2 = A**2 + 2*AB + B**2

None commutative matrices: (A+B)**2 = A**2 + AB + BA + B**2


Three commutative matrices:

Four commutative matrices:

Code study

Two commutative matrices:

Three commutative matrices:

Four commutative matrices: