Praneet002 / RANK-OF-A-MATRIX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

Step 2:

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

Step 4:

Program:

import numpy as np
A=np.array([[1,2,3],[3,6,9]])
rank=np.linalg.matrix_rank(A)
print(rank)

Output:

GitHub Logo

Result:

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

About

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