Data analysis labNumPy problems

Problem 48 of 50 · Linear algebra · Hard

Solve a two-equation system

Solve `2x + y = 5` and `x + 3y = 10`.

Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.

Print the solution [x, y] of the system. The coefficient matrix is [[2, 1], [1, 3]] and the right-hand side is [5, 10]. Use np.linalg.solve.

1

Your solution

2

Scratch