1.
Confirm that
is a basis for
Matrix([[a,b,c],[d,e,f],[g,h,i]])
or as Matrix(3,3,[a,b,c,d,e,f,g,h,i])
.A
is given by A.rref()
. The product of matrices A
and B
is simply A*B
. The inverse of a matrix A
can be found using A.inv()
or simply A**(-1)
.sympy
as your first line of code, you’ll instead use Sage syntax. Sage uses A.inverse()
instead of A.inv()
.+
button.xxxxxxxxxx
from sympy import Matrix,init_printing
init_printing()
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx