Question
Write a Python program using NumPy to
(i) Create following two matrices P and Q with following elements.$
(ii) Compute the (a) Addition, (b) Multiplication, (c) Determinant and (d) Inverse of these matrices.
(iii) Combine the given matrices row-wise and determine the transpose of the combined matrix.
---
Answer :
Word Count : 109
_________ _____ ____ ______ _____ ________ __________ _____ _______ ____.
_________ ____ ______ __________ ________ ___ _____ _________ ____.
_________ ________ ___ ______ _______ ______ __________ ____ ________ _______.
_____ _____ ________ _________ ____ ___ ____ _____ _______ _______ ___.
______ _____ ___ ___ _______ _____ ____ ____ ______.
________ ________ ____ ______ ________ _______ ___ _____ ________ ____ _________ ____.
_____ _______ __________.
Skip in 10
import numpy as np P = np.array([[3, 0, 2], [1, 4, 5], [2, 1, 3]]) Q = np.array([[1, 2, 0], [0, 1, 6], [4, 3, 2]]) # (ii) (a) Addition add_result = P + Q print("Addition of P
________ ____ _____ _______ _________ ______ __________._________ _____ ____ ______ _____ ________ __________ _____ _______ ____.
_________ ____ ______ __________ ________ ___ _____ _________ ____.
_________ ________ ___ ______ _______ ______ __________ ____ ________ _______.
_____ _____ ________ _________ ____ ___ ____ _____ _______ _______ ___.
______ _____ ___ ___ _______ _____ ____ ____ ______.
________ ________ ____ ______ ________ _______ ___ _____ ________ ____ _________ ____.
_____ _______ __________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.