✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Task 2: Python Implementation
Write a Python function using NumPy to check whether a given set of vectors is linearly independent or not. Use matrix rank for your logic.
Instructions:
Define three vectors:
v1 = np.array([1, 2, 3])
v2 = np.array([2, 4, 6])
v3 = np.array([1, 0, 1])
Stack the vectors into a matrix.
Use np.linalg.matrix_rank() to check independence.
Return whether the set is independent or dependent.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!