RosettaCodeData/Task/Matrix-exponentiation-operator/R/matrix-exponentiation-operator-2.r

4 lines
41 B
R
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
a <- matrix(c(1, 2, 3, 4), 2, 2)
a^1
a^2