Computer Science, asked by Dlepcha, 7 months ago

WAP in C++ to find out the matrix is triangular or not, A matrix is upper triangular if every entry below the diagonal is 0. 

For example, 

1 3 1 

     0 0 2 

      0 0 2 is an upper triangular matrix. 

(The diagonal itself, and the entries above and below the diagonals can be zeroes or non-zero integers.) 

A matrix is lower triangular if every entry above the diagonal is 0. For example, 

1 0 0 

2 1 0 

3 2 2 is a lower triangular matrix. 

A matrix is triangular if it is either upper triangular or lower triangular or both

Answers

Answered by rajguttedar3
0

Explanation:

WAP in C++ to find out the matrix is triangular or not, A matrix is upper triangular if every entry below the diagonal is 0. 

For example, 

1 3 1 

     0 0 2 

      0 0 2 is an upper triangular matrix. 

(The diagonal itself, and the entries above and below the diagonals can be zeroes or non-zero integers.) 

A matrix is lower triangular if every entry above the diagonal is 0. For example, 

1 0 0 

2 1 0 

3 2 2 is a lower triangular matrix. 

A matrix is triangular if it is either upper triangular or lower triangular or both

Similar questions