Skip to content
 
 

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

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:

reduce row echelon form

Step 2:

count non zero rows

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

Step 4:

end of the matrix

Program:

#name : NITHISH KUMAR S
#reference no:23013506
import numpy as np
matrix = np.array([[1,2,3],[3,6,9]])
rank = np.linalg.matrix_rank(matrix)
print(rank)

Output:

rank of the matrix

Result:

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors