Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

inverse matrix numpy

>>> import numpy as np
>>> A = np.array(([1,3,3],[1,4,3],[1,3,4]))
>>> A
array([[1, 3, 3],
       [1, 4, 3],
       [1, 3, 4]])
>>> A_inv = np.linalg.inv(A)
>>> A_inv
array([[ 7., -3., -3.],
       [-1.,  1.,  0.],
       [-1.,  0.,  1.]])
Source by moonbooks.org #
 
PREVIOUS NEXT
Tagged: #inverse #matrix #numpy
ADD COMMENT
Topic
Name
9+8 =