dhivyapriyar / INVERSE-OF-A-MATRIX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

INVERSE-OF-A-MATRIX

Aim:

To write a python program to find the inverse of a matrix

Equipment’s required:

  1. Hardware – PCs
  2. Anaconda – Python 3.7 Installation / Moodle-Code Runner

Algorithm:

Step1 :

Use import function to build numpy,

Step 2:

Assign the list of values using np.array.

Step 3:

Using np.linalg.inv, we can find the inverse of the given matrix.

Step 4:

Print the result.

Program:

inverse of a matrix
developed by: dhivyapriya. r
register no.: 22008389

import numpy as np

a=np.array([[6,2,3,],[3,1,1],[10,3,4]])

result=np.linalg.inv(a)

print(result)

Output:

inverse

Result:

Thus the inverse of given matrix is successfully solved using python program

About

License:BSD 3-Clause "New" or "Revised" License