To write a python program to find the rank of a matrix
- Hardware – PCs
- Anaconda – Python 3.7 Installation / Moodle-Code Runner
Import the numpy module to use the build in function for calculation.
Prepare the lists from each linear equation and assign in np.array().
Using the np.linalg.matrix_rank(), we can find the rank of the given matrix.
End the program.
rank of a matrix
import numpy as np
A=([[1,2,3],[3,6,9]])
S=np.linalg.matrix_rank(A)
print(S)
Developed by : Yuvarani T
Register Number : 22009033
Thus the rank for the given matrix is successfully solved by using a python program.
