[Go to the Notes on Diffy Qs home page]

Notes on Diffy Qs - Sage demos for section 3.2

Press the Evaluate button below to launch the Sage demonstration.

Solving systems of equations

One way to get Sage to solve a linear system of equations, is to just give it the equations to solve with the "solve" function. Make sure to use double equals signs and to declare all your variables.

Matrix operations

Here we define two \(2 \times 2\) matrices, \(A\) and \(B,\) and multiply them.

With "det" you can compute the determinant of a matrix.

The "rref" method computes the reduced row echelon form. In this case, we use it to solve the same system we solved above by applying it to the augmented matrix.

We can compute the inverse with the "inverse" method:


Valid HTML 5 Valid CSS!