I need your help with 2 tasks. I totally do not know how to do them.
- For matrix A, find the inverse matrix by fetching to echelon form. Use the block matrix() function to connect the matrices. Matrix is:
1 3 0 -1
0 2 1 3
3 1 2 1
-1 2 0 3
- Consider a subspace S generated by vectors:
v1=[1,0,3],v2=[0,2,2],v3=[1,-2,0].
Are they a basis of the subspace S?
For the first task I have got this:
A = matrix ([[1,3,0,-1],[0,2,1,3],[3,1,2,1],[-1,2,0,3]])
b = block_matrix([[A,matrix.identity(4)],[~A,0*A]])
b
But what to do with the echelon form?
And for the second task I created:
V = QQ^3
v1=vector(QQ,[1,0,3])
v2=vector(QQ,[0,2,2])
v3=vector(QQ,[1,-2,0])
L = [v1,v2,v3]
V.linear_dependence(L)==[]
What is going to be next?