a**********l 发帖数: 268 | | r*******y 发帖数: 1081 | 2 try to subtract a column form another column?
【在 a**********l 的大作中提到】 : A是5階 matrix, 求 det(A-I)
| a**********l 发帖数: 268 | 3
ok. thanks.
【在 r*******y 的大作中提到】 : try to subtract a column form another column?
| g*******2 发帖数: 651 | | d******e 发帖数: 7844 | 5 ... ...
【在 g*******2 的大作中提到】 : 花了一分中,用matlab算了,答案=314
| S******y 发帖数: 1123 | 6 # In R
> a=matrix(1:25,5,5)
> a
[,1] [,2] [,3] [,4] [,5]
[1,] 1 6 11 16 21
[2,] 2 7 12 17 22
[3,] 3 8 13 18 23
[4,] 4 9 14 19 24
[5,] 5 10 15 20 25
> I=matrix(c(1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1),5,5)
> I
[,1] [,2] [,3] [,4] [,5]
[1,] 1 0 0 0 0
[2,] 0 1 0 0 0
[3,] 0 0 1 0 0
[4,] 0 0 0 1 0
[5,] 0 0 0 0 1
> a-I
[,1] [,2] [,3] [,4] [,5] |
|