Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python find inverse of matrix

import numpy as np
  
# Taking a 3 * 3 matrix
A = np.array([[6, 1, 1],
              [4, -2, 5],
              [2, 8, 7]])
  
# Calculating the inverse of the matrix
print(np.linalg.inv(A))
Comment

PREVIOUS NEXT
Code Example
Python :: CUDA error: device-side assert triggered 
Python :: how to create data dictionary in python using keys and values 
Python :: how to get location of word in list in python 
Python :: get rid of n in string python 
Python :: distribution plot with curve python 
Python :: find absolut vale in python 
Python :: save pythonpath 
Python :: first day of the month python 
Python :: delete a row in pandas dataframe 
Python :: how to log ip addresses in python 
Python :: pip show all installed packages 
Python :: python read lines from text file 
Python :: read csv without index 
Python :: python thread with parameters 
Python :: narcissistic number python 
Python :: how to import tkinter in python 
Python :: how to print all rows in pandas 
Python :: python how to add picture to label with tkinter 
Python :: what is values_list in django orm 
Python :: how to import data from csv to jupyter notebook 
Python :: python - exchange rate API 
Python :: how to set background color of an image to transparent in pygame 
Python :: how to change canvas background color in python tkinter 
Python :: datetime to milliseconds python 
Python :: creat and active python environment 
Python :: how to get seconds from datetime in python 
Python :: blackjack in python 
Python :: set select group of columns to numeric pandas 
Python :: find index of pandas column 
Python :: chart-studio python install 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =