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

Element pl-matrix-input: Matrix algebra with complex values

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

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

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

A = Matrix([[0.90+0.00j, 0.10+0.30j, 0.10-0.30j], [-0.10+0.20j, -0.90+0.10j, -1.00-0.60j]])
B = Matrix([[-0.50+0.00j, -0.50+0.10j, -0.90+0.40j], [-0.50+0.80j, -0.90-0.50j, -0.70+0.10j], [0.30-0.10j, -0.40-0.70j, -1.00-0.40j]])

Find the product of these two matrices:

Correct answer

$AB=$ [-0.74-0.17j -0.64-0.18j -1.13+0.42j; 0.06-0.95j 0.87+1.19j 1.39+0.62j]

$AB=$ [[-0.74-0.17j, -0.64-0.18j, -1.13+0.42j], [0.06-0.95j, 0.87+1.19j, 1.39+0.62j]]

Student view placeholder

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

Staff information

Question

Title:
Element pl-matrix-input: Matrix algebra with complex values

Variant

Started at:
2026-08-04 22:47:26 (CDT)
Duration:
0s
Show/Hide answer
{
  "C": {
    "_type": "complex_ndarray",
    "_dtype": "complex128",
    "_value": {
      "imag": [
        [
          -0.16999999999999998,
          -0.18000000000000002,
          0.42000000000000004
        ],
        [
          -0.9500000000000002,
          1.19,
          0.62
        ]
      ],
      "real": [
        [
          -0.74,
          -0.64,
          -1.13
        ],
        [
          0.06,
          0.8700000000000003,
          1.39
        ]
      ]
    }
  }
}
History
dec frac
rad deg