Skip to content

21005688/RANK-OF-A-MATRIX

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

RANK-OF-A-MATRIX

Aim:

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

Equipment’s required:

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

Algorithm:

Step 1:

Import the numpy module to use the built- in functions for calculation

Step 2:

prepare the lists from each rank of matrix and assign in np.array()

step 3:

Using the np.linalg.matrix_rank(), we can find the rank of the given matrix.

Step 4:

End the program

Program:

#Program to find the rank of a matrix.
#Developed by: deepika.j
#RegisterNumber:21005688
import numpy as np
A=np.array ([[5,-3,-10],[2,2,-3],[-3,-1,5]])
rank=np.linalg.matrix_rank(A)
print(rank)

Output:

output

Result:

Thus the rank for the given matrix is successfully solved by using a python program.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors