smatrix.out

来自「data structures, algorithms and Applicat」· OUT 代码 · 共 50 行

OUT
50
字号
Enter number of rows, columns, and terms
Enter row, column, and value of term 1
Enter row, column, and value of term 2
Enter row, column, and value of term 3
Enter row, column, and value of term 4
Enter row, column, and value of term 5
Enter row, column, and value of term 6
Matrix A is
rows = 4 columns = 5
nonzero terms = 6
a(1,3) = 2
a(2,5) = 3
a(3,1) = 4
a(3,4) = 5
a(4,2) = 1
a(4,5) = 2
Enter number of rows, columns, and terms
Enter row, column, and value of term 1
Enter row, column, and value of term 2
Enter row, column, and value of term 3
Enter row, column, and value of term 4
Enter row, column, and value of term 5
Matrix B is
rows = 4 columns = 5
nonzero terms = 5
a(1,2) = 1
a(1,3) = 3
a(3,1) = 4
a(3,2) = 3
a(3,4) = -5
The transpose of A is
rows = 5 columns = 4
nonzero terms = 6
a(1,3) = 4
a(2,4) = 1
a(3,1) = 2
a(4,3) = 5
a(5,2) = 3
a(5,4) = 2
The sum of A and B is
rows = 4 columns = 5
nonzero terms = 7
a(1,2) = 1
a(1,3) = 5
a(2,5) = 3
a(3,1) = 8
a(3,2) = 3
a(4,2) = 1
a(4,5) = 2

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?