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 = 4
while True:
A = matrix(n, random_int_list(n^2, 3))
if A.det() != 0:
break
print("A =")
pretty_print(A)
print("determinant of A =", A.det())
Replace None
with your favorite number and run the code again. The outcome is a matrix
This note can be found at Course website > Learning resources.