Mathematics, Probability, Data Science, Stochastic Process, Artificial Intelligence.
.2, 1, .3, .4, 0, 0, .4, 0), nrow = 3, ncol = 3) # make the matrix printers [,0] [,1] [,2] [0,] 0.7 0.3 0.0 [1,] 0.2 0.4 0.4 [2,] 1.0 0.0 0.0 matrixpower(printers, 2) [,0] [,1] [,2] [0,] 0.55 0.33 0.12 [1,] 0.62 0.22 0.16 [2,] 0.70 0.30 0.00 # Note that I've manually changed the indexing to start