ΣνΜDr. Sharon's Math PlatformSyvara Learning
Question Bank › 📘 Undergraduate › Numerical Method with Python (Math & Eng) › Q20

Q20 · NumPy: sum, product, transpose, determinant of 3×3 matrices

Matrix Operations and Linear Systems 🟡 Intermediate Coding
Question

Using NumPy, define the matrices:
$$A = \begin{bmatrix} 2 & 3 & -1 \\ 1 & -1 & 2 \\ 3 & 1 & 1 \end{bmatrix}, \quad B = \begin{bmatrix} 1 & 0 & 2 \\ 0 & 1 & -1 \\ 2 & -1 & 3 \end{bmatrix}$$

Compute and print:
(a) $A + B$
(b) $AB$ (matrix multiply)
(c) $A^T$ (transpose of A)
(d) $\det(A)$ using np.linalg.det
(e) Is $A$ invertible? Why or why not?

🔒

Log in to see the worked solution

Enter your email to get started. Your first free solutions in every course unlock as soon as you verify.

Log in or sign up with email
← Previous Next →
Working…