Quiz 5!
A quick quiz to test your knowledge on systems of linear equations.
1
Which of the codes solves the following set of equation?
A)
A = np.array([[2, 3, 1], [1, 1, -3], [1, 4, -4]])
b = np.array([-6, 10, -6])
print(np.linalg.solve(A, b))
B)
A = np.array([[1, 1, -3], [2, 3, 1], [1, 4, -4]])
b = np.array([10, -6, -6])
print(np.linalg.solve(A, b))
C)
A = np.array([[1, 1, -3], [2, 3, 1], [1, 4, -4]])
b = np.array([-6, 10, -6])
print(np.linalg.solve(A, b))
D)
A = np.array([[1, 1, -3], [1, 4, -4], [2, 3, 1]])
b = np.array([-6, 10, -6])
print(np.linalg.solve(A, b))
Question 1 of 60 attempted
Get hands-on with 1200+ tech skills courses.