You are viewing this question as it will appear in the manual grading interface. Return to the normal view when you are done.

Template pl-matrix-input: Matrix algebra

Two matrices $A$ and $B$ are given as follows:

1
2
A = [0.60 -0.50; 1.00 -0.10; 0.70 0.60];
B = [-1.00 0.20; -0.40 0.90];
1
2
A = {{0.60, -0.50}, {1.00, -0.10}, {0.70, 0.60}};
B = {{-1.00, 0.20}, {-0.40, 0.90}};
1
2
3
4
import numpy as np

A = np.array([[0.60, -0.50], [1.00, -0.10], [0.70, 0.60]])
B = np.array([[-1.00, 0.20], [-0.40, 0.90]])
1
2
A = matrix(c(0.60, -0.50, 1.00, -0.10, 0.70, 0.60), nrow = 3, ncol = 2, byrow = TRUE)
B = matrix(c(-1.00, 0.20, -0.40, 0.90), nrow = 2, ncol = 2, byrow = TRUE)
1
2
3
4
from sympy import *

A = Matrix([[0.60, -0.50], [1.00, -0.10], [0.70, 0.60]])
B = Matrix([[-1.00, 0.20], [-0.40, 0.90]])

Find the product of these two matrices:

Correct answer

$AB=$ [-0.400 -0.330; -0.960 0.110; -0.940 0.680]

$AB=$ [[-0.400, -0.330], [-0.960, 0.110], [-0.940, 0.680]]

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Question

Title:
Template pl-matrix-input: Matrix algebra

Variant

Started at:
2026-09-19 08:00:23 (CDT)
Duration:
0s
Show/Hide answer
{
  "C": {
    "_type": "ndarray",
    "_dtype": "float64",
    "_value": [
      [
        -0.39999999999999997,
        -0.33
      ],
      [
        -0.96,
        0.11
      ],
      [
        -0.94,
        0.6799999999999999
      ]
    ]
  }
}
History
dec frac
rad deg