Try   HackMD

Write a matrix as the product of elementary matrices

Problem

Run the SageMath code below or simply click here.

load("https://raw.githubusercontent.com/jephianlin/LA-notebook/main/lingeo.py") ### code set_random_seed(None) n = 3 A = random_good_matrix(n,n,n) print("A") pretty_print(A) elems = row_operation_process(A, inv=True) pretty_print(elems)

Replace None with your favorite number and run the code again. The outcome is a matrix

A. Write
A
as the product of elementary matrices and check your answer with the output.

Note that the answer is not unique. So your answer might still be correct even if it is different from the output. However, think about what causes the difference.

This note can be found at Course website > Learning resources.