Presentacion optimizacion
Enviado por Daniel Alvarado • 11 de Julio de 2022 • Trabajo • 616 Palabras (3 Páginas) • 88 Visitas
Evaluacion 1
Daniel Alvarado
2022-04-01
M1 = matrix(c(2,3,3,4,6,6),nrow=2,byrow=TRUE)
M1
## [,1] [,2] [,3]
## [1,] 2 3 3
## [2,] 4 6 6
M2 = matrix(c(-1,4,5,1,0,2),nrow=2,byrow=TRUE)
M2
## [,1] [,2] [,3]
## [1,] -1 4 5
## [2,] 1 0 2
M3 = matrix(c(11,54,15,15,41,41,43,15,20,17,58,36,25,56,56),nrow=3,byrow=TRUE)
M3
## [,1] [,2] [,3] [,4] [,5]
## [1,] 11 54 15 15 41
## [2,] 41 43 15 20 17
## [3,] 58 36 25 56 56
M4=matrix(c(34,27,81,56,72),nrow=5,byrow=TRUE)
M4
## [,1]
## [1,] 34
## [2,] 27
## [3,] 81
## [4,] 56
## [5,] 72
R1 = M1+M2
R1
## [,1] [,2] [,3]
## [1,] 1 7 8
## [2,] 5 6 8
M3%*%M4
## [,1]
## [1,] 6839
## [2,] 6114
## [3,] 12137
M5 = matrix(c(34,27,81,56),nrow=4,byrow=TRUE)
M5
## [,1]
## [1,] 34
## [2,] 27
## [3,] 81
## [4,] 56
t(M5)
## [,1] [,2] [,3] [,4]
## [1,] 34 27 81 56
M6 = matrix(c(10,50,15,20,60,70,19,60,50,90,78,15,19,90,90,99),nrow=4,byrow=TRUE)
M6
## [,1] [,2] [,3] [,4]
## [1,] 10 50 15 20
## [2,] 60 70 19 60
## [3,] 50 90 78 15
## [4,] 19 90 90 99
...