solve ax=b python code example Example: solve ax=b python a = np.array([[1, 2], [3, 5]]) b = np.array([1, 2]) x = np.linalg.solve(a, b)