ex7-19

512 days ago by maxroot123

v1 = vector([0, 0, 1, 0]) v2 = vector([1, 0, 1, 1]) v3 = vector([1, 1, 2, 1]) A1 = matrix(QQ, 3, 4, [v1, v2, v3]) A = A1.transpose() print('problem (1)') print(A) print('') print(A.rref()) v1 = vector([1, 1, 1, 1]) v2 = vector([-1, 4, 4, -1]) v3 = vector([4, -2, 2, 0]) A1 = matrix(QQ, 3, 4, [v1, v2, v3]) A = A1.transpose() print('\n\nproblem (2)') print(A) print('') print(A.rref()) 
       
problem (1)
[0 1 1]
[0 0 1]
[1 1 2]
[0 1 1]

[1 0 0]
[0 1 0]
[0 0 1]
[0 0 0]


problem (2)
[ 1 -1  4]
[ 1  4 -2]
[ 1  4  2]
[ 1 -1  0]

[1 0 0]
[0 1 0]
[0 0 1]
[0 0 0]
problem (1)
[0 1 1]
[0 0 1]
[1 1 2]
[0 1 1]

[1 0 0]
[0 1 0]
[0 0 1]
[0 0 0]


problem (2)
[ 1 -1  4]
[ 1  4 -2]
[ 1  4  2]
[ 1 -1  0]

[1 0 0]
[0 1 0]
[0 0 1]
[0 0 0]