6.47.6 Rank of a matrix:
rank
The
rank
command finds the rank of a matrix.
rank
takes one argument:
A
, a matrix.
rank(
A
)
returns the rank of the matrix
A
.
Examples.
Input:
rank([[1,2],[3,4]])
Output:
2
Input:
rank([[1,2],[2,4]])
Output:
1