Answers for "inverse of a matrix with determinant 0 python linalg"

0

inverse of a matrix with determinant 0 python linalg

''' python code '''
import numpy as np
a = np.array([[1., 2.], [3., 4.]])
''' which has a determinant equal to zero '''

a_inverse = np.linalg.pinv(a)
''' method 'pinv' from linalg gives us inverse of the matrix '''
Posted by: Guest on April-23-2021

Code answers related to "inverse of a matrix with determinant 0 python linalg"

Python Answers by Framework

Browse Popular Code Answers by Language