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
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
Social Sciences,
3 months ago
English,
3 months ago
Social Sciences,
7 months ago
Biology,
7 months ago
Math,
1 year ago
Math,
1 year ago