Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

solve system of linear equations numpy

A = np.array([[4, 3, 2], [-2, 2, 3], [3, -5, 2]]) # matrix
b = np.array([25, -10, -4]) # b vector

X = np.linalg.inv(A).dot(b) # returns values for x, y and z
#or
X = np.linalg.solve(A, b)
 
PREVIOUS NEXT
Tagged: #solve #system #linear #equations #numpy
ADD COMMENT
Topic
Name
1+1 =