rank({{9, 3, 5}, {-6, -9, 7}, {-1, -8, 1}})
A=matrix([[9, 3, 5], [-6, -9, 7], [-1, -8, 1]])
show(A)
show(rank(A))
A:matrix([9, 3, 5], [-6, -9, 7], [-1, -8, 1]);
rank(A);
det({{9, 3, 5}, {-6, -9, 7}, {-1, -8, 1}})
A=matrix([[9, 3, 5], [-6, -9, 7], [-1, -8, 1]])
show(A)
show(det(A))
A:matrix([9, 3, 5], [-6, -9, 7], [-1, -8, 1]);
determinant(A);
solve x1+3*x2+4*x3=1, x1-x3=9, x1+x3=8
x1,x2,x3 = var('x1,x2,x3')
soustava=[x1+3*x2+4*x3==1, x1-x3==9, x1+x3==8]
show(soustava)
reseni=solve (soustava,[x1,x2,x3])
show(reseni)
soustava:[x1+3*x2+4*x3=1, x1-x3=9, x1+x3=8];
reseni:solve (soustava,[x1,x2,x3]);
var('x1 x2 x3')
A=matrix([[1,2,3],[3,-1,2],[1,3,2]])
X=matrix([[x1,x2,x3]]).transpose()
B=matrix([[11,12,13]]).transpose()
html("<h2>Matice $A$, $X$, $B$</h2>")
show([A,X,B])
html("<h2>Matice $AX$, $B$</h2>")
show([A*X,B])
html("<h2>Soustava $AX=B$</h2>")
soustava = [(A*X)[i][0] == B[i][0] for i in range(len(A.rows()))]
show(matrix([soustava]).transpose())
html("<h2>Řešení soustavy $AX=B$</h2>")
show(solve(soustava, [x1,x2,x3]))
html("<h2>Vektor $A^{-1}B$</h2>")
show(A^(-1)*B)