Mathlab - 4
Mathlab - 4
So, Here, there are two non-zero rows, so the rank of the matrix is 2.
Q3: What is an upper triangular matrix and lower triangular matrix? Explain with
example.
Solution: Upper Triangular Matrix: A matrix where all elements below the
diagonal are zero.
Example:
Lower Triangular Matrix: A matrix where all elements above the diagonal are
zero.
Example:
Q4: Write the algorithm to transform a matrix into its upper triangular form with
example.
Solution:
Example:
Since there are two non-zero rows, the rank of the matrix is 2.
Q6: Transform the following matrices into their upper triangular form and also
find the rank by Algorithm.
Solution:
Transform the given matrices into upper triangular form and find their rank using
an algorithm.
We will convert each matrix into upper triangular form using row operations and
then find the rank by counting the number of non-zero rows.
Matrix A:
we get:
Output:
Q8: Write a Python program to find the rank of a matrix after transforming into
its upper triangular form in Python and verify it for the given matrices.
Solution:
Output:
SUBMITTED BY
Name:-SOMYA RANJAN SAHOO
Redg no:-2301020835
Branch:-CSE(AI&DS)
Group:-6