Linear Algebra and Matrix Operations
Solve systems of equations, invert matrices and decompose them with numpy.linalg and scipy.linalg.
Easy
import numpy as np
A = np.array([[3, 1], [1, 2]]); b = np.array([9, 8])
x = np.linalg.solve(A, b) # [2., 3.]
A @ x # matrix multiply
np.linalg.det(A), np.linalg.inv(A)
Nodal circuit analysis is exactly "solve ".
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.