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.60-0.20j 1.00+1.00j 0.00+0.80j -0.40-0.80j -0.10+0.70j];
B = [-0.50+1.00j 0.90-0.90j 0.80+0.30j; -0.40-0.20j 0.70+0.40j 0.20+0.70j; -1.00+0.90j 0.70+0.90j 0.20+0.30j; 0.10+0.60j -0.50-1.00j 0.20+0.20j; 0.70-0.60j -0.20+0.80j -0.60-0.40j];
1
2
A = {{-0.60-0.20j, 1.00+1.00j, 0.00+0.80j, -0.40-0.80j, -0.10+0.70j}};
B = {{-0.50+1.00j, 0.90-0.90j, 0.80+0.30j}, {-0.40-0.20j, 0.70+0.40j, 0.20+0.70j}, {-1.00+0.90j, 0.70+0.90j, 0.20+0.30j}, {0.10+0.60j, -0.50-1.00j, 0.20+0.20j}, {0.70-0.60j, -0.20+0.80j, -0.60-0.40j}};
1
2
3
4
import numpy as np

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

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

Find the product of these two matrices:

Correct answer

$AB=$ [0.37-1.67j -2.28+2.6j -0.74+0.1j]

$AB=$ [[0.37-1.67j, -2.28+2.6j, -0.74+0.1j]]

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-09-19 09:12:59 (CDT)
Duration:
0s
Show/Hide answer
{
  "C": {
    "_type": "complex_ndarray",
    "_dtype": "complex128",
    "_value": {
      "imag": [
        [
          -1.6700000000000004,
          2.6,
          0.09999999999999981
        ]
      ],
      "real": [
        [
          0.36999999999999983,
          -2.2800000000000002,
          -0.7399999999999999
        ]
      ]
    }
  }
}
History
dec frac
rad deg