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

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

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

Find the product of these two matrices:

Correct answer

$AB=$ [-0.6-0.28j -2.68-0.09j 0.2-2.28j]

$AB=$ [[-0.6-0.28j, -2.68-0.09j, 0.2-2.28j]]

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-05 00:40:20 (CDT)
Duration:
0s
Show/Hide answer
{
  "C": {
    "_type": "complex_ndarray",
    "_dtype": "complex128",
    "_value": {
      "imag": [
        [
          -0.2799999999999999,
          -0.08999999999999983,
          -2.28
        ]
      ],
      "real": [
        [
          -0.6000000000000001,
          -2.6799999999999997,
          0.20000000000000007
        ]
      ]
    }
  }
}
History
dec frac
rad deg