What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-23 12:01:42
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 ''' Add solution
Best helpers
Cynthia
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
John Weisz
+5
Rocky DeHart
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5